[poppler] Branch 'poppler-0.6' - poppler/Lexer.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sat Feb 9 14:58:39 PST 2008


 poppler/Lexer.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 04bc5d4a35a03b53b0d535526dc4f1192c8ade6c
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Feb 9 23:56:32 2008 +0100

    Only check if we are out of bounds if the object we are searching for has a known id (0 also means not known)
    
    Found by Michael Vrable

diff --git a/poppler/Lexer.cc b/poppler/Lexer.cc
index 09a3f13..5b9889a 100644
--- a/poppler/Lexer.cc
+++ b/poppler/Lexer.cc
@@ -317,7 +317,7 @@ Object *Lexer::getObj(Object *obj, int objNum) {
 	  n = 0;
 	  
 	  // we are growing see if the document is not malformed and we are growing too much
-	  if (objNum != -1)
+	  if (objNum > 0)
 	  {
 	    int newObjNum = xref->getNumEntry(curStr.streamGetPos());
 	    if (newObjNum != objNum)


More information about the poppler mailing list