[poppler] Branch 'poppler-0.18' - poppler/Lexer.cc
Adrian Johnson
ajohnson at kemper.freedesktop.org
Sun Feb 5 06:45:10 PST 2012
poppler/Lexer.cc | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit fb629ac684a7f05d95d10285807c2cf1602d28ca
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Sat Feb 4 17:13:30 2012 +1030
Lexer: convert integer to real when overflow occurs
Bug 45605
(cherry picked from commit 38ec58ed1cb54722aece875287b847643aa2c4b8)
diff --git a/poppler/Lexer.cc b/poppler/Lexer.cc
index 6250d40..98a9403 100644
--- a/poppler/Lexer.cc
+++ b/poppler/Lexer.cc
@@ -228,11 +228,13 @@ Object *Lexer::getObj(Object *obj, int objNum) {
break;
}
}
- if (neg)
+ if (neg) {
xi = -xi;
+ xf = -xf;
+ }
if (unlikely(overflownInteger)) {
if (overflownUnsignedInteger) {
- obj->initError();
+ obj->initReal(xf);
} else {
obj->initUint(xui);
}
More information about the poppler
mailing list