[poppler] poppler/Lexer.cc

Adrian Johnson ajohnson at kemper.freedesktop.org
Sun Feb 5 06:44:32 PST 2012


 poppler/Lexer.cc |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 38ec58ed1cb54722aece875287b847643aa2c4b8
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

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