[poppler] poppler/Lexer.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Mon Feb 18 11:17:47 PST 2008


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

New commits:
commit 064b316648e35416bb49336639da1d8d288d1ecf
Author: Albert Astals Cid <aacid at kde.org>
Date:   Mon Feb 18 20:17:37 2008 +0100

    xref can be null so check for it before checking we went out of bounds
    
    Fixes bug 14549

diff --git a/poppler/Lexer.cc b/poppler/Lexer.cc
index 5b9889a..beb83da 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 > 0)
+	  if (objNum > 0 && xref != NULL)
 	  {
 	    int newObjNum = xref->getNumEntry(curStr.streamGetPos());
 	    if (newObjNum != objNum)


More information about the poppler mailing list