aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_Stream.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-08-28 15:32:58 +0200
committerJay Berkenbilt <ejb@ql.org>2019-08-28 18:49:04 +0200
commit47a38a942d34a65524dca2e1255c1b4ba02d7eb6 (patch)
tree9210e3bd1fd1618d2701a1270c638cf347cd9f5f /libqpdf/QPDF_Stream.cc
parent15248aa54bdf31d5f149b8b0afd584b2a09ce222 (diff)
downloadqpdf-47a38a942d34a65524dca2e1255c1b4ba02d7eb6.tar.zst
Detect stream in object stream, fixing fuzz 16214
It's detected in QPDFWriter instead of at parse time because I can't figure out how to construct a test case in a reasonable time. This commit moves the fuzz file into the regular test suite for a QTC coverage case.
Diffstat (limited to 'libqpdf/QPDF_Stream.cc')
-rw-r--r--libqpdf/QPDF_Stream.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libqpdf/QPDF_Stream.cc b/libqpdf/QPDF_Stream.cc
index 4f20c604..dd2796e8 100644
--- a/libqpdf/QPDF_Stream.cc
+++ b/libqpdf/QPDF_Stream.cc
@@ -105,7 +105,8 @@ QPDF_Stream::setStreamDescription()
{
setDescription(
this->qpdf,
- "stream object " + QUtil::int_to_string(this->objid) + " " +
+ this->qpdf->getFilename() +
+ ", stream object " + QUtil::int_to_string(this->objid) + " " +
QUtil::int_to_string(this->generation));
}