From 5a2aa5947944a789164efc6555e32b79525487cf Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 20 May 2022 09:09:09 -0400 Subject: [PATCH] Bug fix: isReserved() true for indirect reference to reserved object --- libqpdf/QPDFObjectHandle.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc index f3d1883a..6ac69ab1 100644 --- a/libqpdf/QPDFObjectHandle.cc +++ b/libqpdf/QPDFObjectHandle.cc @@ -3228,6 +3228,7 @@ QPDFObjectHandle::dereference() this->obj = std::shared_ptr(new QPDF_Null()); } else if (dynamic_cast(obj.get())) { // Do not resolve + this->reserved = true; } else { this->reserved = false; this->obj = obj;