From 4ae93a73c5bbf36cf2b36712b0df7acabbc1e61a Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 31 Jan 2021 07:13:04 -0500 Subject: Improve memory safety of dict/array iterators --- libqpdf/QPDFObjectHandle.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libqpdf') diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc index 288b5256..15907f6e 100644 --- a/libqpdf/QPDFObjectHandle.cc +++ b/libqpdf/QPDFObjectHandle.cc @@ -3080,7 +3080,7 @@ QPDFObjectHandle::warn(QPDF* qpdf, QPDFExc const& e) } } -QPDFDictItems::QPDFDictItems(QPDFObjectHandle& oh) : +QPDFDictItems::QPDFDictItems(QPDFObjectHandle const& oh) : oh(oh) { } @@ -3171,7 +3171,7 @@ QPDFDictItems::end() return iterator(oh, false); } -QPDFArrayItems::QPDFArrayItems(QPDFObjectHandle& oh) : +QPDFArrayItems::QPDFArrayItems(QPDFObjectHandle const& oh) : oh(oh) { } -- cgit v1.2.3-54-g00ecf