diff options
Diffstat (limited to 'Build/source/libs/xpdf/xpdf-src/xpdf/Lexer.cc')
-rw-r--r-- | Build/source/libs/xpdf/xpdf-src/xpdf/Lexer.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Build/source/libs/xpdf/xpdf-src/xpdf/Lexer.cc b/Build/source/libs/xpdf/xpdf-src/xpdf/Lexer.cc index 283a070b576..05e9df9f24c 100644 --- a/Build/source/libs/xpdf/xpdf-src/xpdf/Lexer.cc +++ b/Build/source/libs/xpdf/xpdf-src/xpdf/Lexer.cc @@ -179,7 +179,9 @@ Object *Lexer::getObj(Object *obj) { if (isdigit(c)) { getChar(); xi = xi * 10 + (c - '0'); - xf = xf * 10 + (c - '0'); + if (xf < 1e20) { + xf = xf * 10 + (c - '0'); + } } else if (c == '.') { getChar(); goto doReal; |