Commit bc42bcaa authored by Albert Astals Cid's avatar Albert Astals Cid

Refine the entry type check

Fixes KDE bug #424779
parent c3c3ae49
Pipeline #187935 passed with stage
in 4 minutes and 8 seconds
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment