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

New commits:
commit d3275e4263372b534c276f81d0c997ecb6675487
Merge: c2186c1... 5347a97...
Author: Albert Astals Cid <[EMAIL PROTECTED]>
Date:   Sat Feb 9 23:57:03 2008 +0100

    Merge branch 'master' of ssh://[EMAIL PROTECTED]/git/poppler/poppler

commit c2186c1829c695c4ddb6c471ef8ad4ffa23c1b70
Author: Albert Astals Cid <[EMAIL PROTECTED]>
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)
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to