[poppler] poppler/XRef.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Wed Sep 13 20:59:14 UTC 2017


 poppler/XRef.cc |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 476394e7a025e02e4897da2e765df2c895d0708f
Author: Albert Astals Cid <aacid at kde.org>
Date:   Wed Sep 13 22:58:14 2017 +0200

    XRef::parseEntry: Fix crash in broken file
    
    Bug #102687

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);
 


More information about the poppler mailing list