summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poppler/XRef.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/poppler/XRef.cc b/poppler/XRef.cc
index eca2dc70..f3b88ec0 100644
--- a/poppler/XRef.cc
+++ b/poppler/XRef.cc
@@ -1526,6 +1526,9 @@ GBool XRef::parseEntry(Goffset offset, XRefEntry *entry)
{
GBool r;
+ if (unlikely(entry == nullptr))
+ return gFalse;
+
Parser parser(NULL, new Lexer(NULL,
str->makeSubStream(offset, gFalse, 20, Object(objNull))), gTrue);