mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 10:58:58 +00:00
In QPDF::processXRefStream avoid inserting objed id 0 into the xref table
This commit is contained in:
parent
a1fe40a4f0
commit
972cbf103d
@ -1117,8 +1117,7 @@ QPDF::processXRefStream(qpdf_offset_t xref_offset, QPDFObjectHandle& xref_obj)
|
|||||||
if (obj == 0) {
|
if (obj == 0) {
|
||||||
// This is needed by checkLinearization()
|
// This is needed by checkLinearization()
|
||||||
m->first_xref_item_offset = xref_offset;
|
m->first_xref_item_offset = xref_offset;
|
||||||
}
|
} else if (fields[0] == 0) {
|
||||||
if (fields[0] == 0) {
|
|
||||||
// Ignore fields[2], which we don't care about in this case. This works around the issue
|
// Ignore fields[2], which we don't care about in this case. This works around the issue
|
||||||
// of some PDF files that put invalid values, like -1, here for deleted objects.
|
// of some PDF files that put invalid values, like -1, here for deleted objects.
|
||||||
insertFreeXrefEntry(QPDFObjGen(obj, 0));
|
insertFreeXrefEntry(QPDFObjGen(obj, 0));
|
||||||
|
Loading…
Reference in New Issue
Block a user