aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-02-06 20:23:45 +0100
committerJay Berkenbilt <ejb@ql.org>2021-02-06 20:29:11 +0100
commitac2b3b96e163c6ef98b708c6392a7e51538dd1cf (patch)
treeb90e4642e49203a83b979cf8900379af95654cb6 /libqpdf
parentaf557db4a442db070e90584cb01ef08c3d6a2de1 (diff)
downloadqpdf-ac2b3b96e163c6ef98b708c6392a7e51538dd1cf.tar.zst
Make wrong object stream type a warning
Diffstat (limited to 'libqpdf')
-rw-r--r--libqpdf/QPDF.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/libqpdf/QPDF.cc b/libqpdf/QPDF.cc
index f690d30a..89c6ed74 100644
--- a/libqpdf/QPDF.cc
+++ b/libqpdf/QPDF.cc
@@ -2187,12 +2187,12 @@ QPDF::resolveObjectsInStream(int obj_stream_number)
dict.getKey("/Type").getName() == "/ObjStm"))
{
QTC::TC("qpdf", "QPDF ERR object stream with wrong type");
- throw QPDFExc(qpdf_e_damaged_pdf, this->m->file->getName(),
- this->m->last_object_description,
- this->m->file->getLastOffset(),
- "supposed object stream " +
- QUtil::int_to_string(obj_stream_number) +
- " has wrong type");
+ warn(QPDFExc(qpdf_e_damaged_pdf, this->m->file->getName(),
+ this->m->last_object_description,
+ this->m->file->getLastOffset(),
+ "supposed object stream " +
+ QUtil::int_to_string(obj_stream_number) +
+ " has wrong type"));
}
if (! (dict.getKey("/N").isInteger() &&