diff options
author | Albert Astals Cid <aacid@kde.org> | 2017-09-13 22:58:14 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2017-09-13 22:59:11 +0200 |
commit | 476394e7a025e02e4897da2e765df2c895d0708f (patch) | |
tree | bf262c62f32f629ae67344d9172da1335d4c4670 | |
parent | 0f891b85169dabd3d23348aba40266547bd4bcf6 (diff) |
XRef::parseEntry: Fix crash in broken file
Bug #102687
-rw-r--r-- | poppler/XRef.cc | 3 |
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); |