[poppler] poppler/XRef.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Aug 8 17:32:30 UTC 2020


 poppler/XRef.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit bc42bcaa7d56c17901e4fd333d3afd91bab8c88f
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Aug 8 19:27:24 2020 +0200

    Refine the entry type check
    
    Fixes KDE bug #424779

diff --git a/poppler/XRef.cc b/poppler/XRef.cc
index 1b5b999a..bc2b09b6 100644
--- a/poppler/XRef.cc
+++ b/poppler/XRef.cc
@@ -1167,7 +1167,7 @@ Object XRef::fetch(int num, int gen, int recursion)
       goto err;
     }
 #endif
-        if (e->offset >= (unsigned int)size || entries[e->offset].type != xrefEntryUncompressed) {
+        if (e->offset >= (unsigned int)size || (entries[e->offset].type != xrefEntryUncompressed && entries[e->offset].type != xrefEntryNone)) {
             error(errSyntaxError, -1, "Invalid object stream");
             goto err;
         }


More information about the poppler mailing list