aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_Stream.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-05-20 17:07:03 +0200
committerJay Berkenbilt <ejb@ql.org>2022-05-20 17:09:45 +0200
commitef955b04b5cfd1042dc1751bb4c82d79aff89f46 (patch)
treeccecc27f302ec970cc74cdadf3f808720bb2383f /libqpdf/QPDF_Stream.cc
parent3eb77a700434ed6d9b51e326fa4d49c530fcd473 (diff)
downloadqpdf-ef955b04b5cfd1042dc1751bb4c82d79aff89f46.tar.zst
Bug fix: don't clobber stream length with replaceDict
Diffstat (limited to 'libqpdf/QPDF_Stream.cc')
-rw-r--r--libqpdf/QPDF_Stream.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/libqpdf/QPDF_Stream.cc b/libqpdf/QPDF_Stream.cc
index 11dbe7e3..c3e5f747 100644
--- a/libqpdf/QPDF_Stream.cc
+++ b/libqpdf/QPDF_Stream.cc
@@ -746,12 +746,6 @@ QPDF_Stream::replaceDict(QPDFObjectHandle const& new_dict)
{
this->stream_dict = new_dict;
setDictDescription();
- QPDFObjectHandle length_obj = this->stream_dict.getKey("/Length");
- if (length_obj.isInteger()) {
- this->length = QIntC::to_size(length_obj.getUIntValue());
- } else {
- this->length = 0;
- }
}
void