diff --git a/xpdf/xpdf/Lexer.cc b/xpdf/xpdf/Lexer.cc index 194b359c3..08b3598c1 100644 --- a/xpdf/xpdf/Lexer.cc +++ b/xpdf/xpdf/Lexer.cc @@ -298,7 +298,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)