2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-02 03:42:30 +00:00

Bug fix: isReserved() true for indirect reference to reserved object

This commit is contained in:
Jay Berkenbilt 2022-05-20 09:09:09 -04:00
parent 35b1e1c493
commit 5a2aa59479

View File

@ -3228,6 +3228,7 @@ QPDFObjectHandle::dereference()
this->obj = std::shared_ptr<QPDFObject>(new QPDF_Null());
} else if (dynamic_cast<QPDF_Reserved*>(obj.get())) {
// Do not resolve
this->reserved = true;
} else {
this->reserved = false;
this->obj = obj;