diff options
author | Jay Berkenbilt <ejb@ql.org> | 2021-01-31 13:13:04 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2021-01-31 13:16:03 +0100 |
commit | 4ae93a73c5bbf36cf2b36712b0df7acabbc1e61a (patch) | |
tree | 58c3193f4192f43b4c3ea190249a4a64b726bdc0 /libqpdf | |
parent | 1fec40454ef72c6e2f079b599e9c807ce69a4bec (diff) | |
download | qpdf-4ae93a73c5bbf36cf2b36712b0df7acabbc1e61a.tar.zst |
Improve memory safety of dict/array iterators
Diffstat (limited to 'libqpdf')
-rw-r--r-- | libqpdf/QPDFObjectHandle.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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) { } |