[poppler] Branch 'poppler-0.6' - poppler/Lexer.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Mon Feb 18 11:09:42 PST 2008
poppler/Lexer.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 2a30cf80225d8b54d4ac752f79b55dcda48b8268
Author: Albert Astals Cid <aacid at kde.org>
Date: Mon Feb 18 20:09:25 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