diff options
Diffstat (limited to 'libqpdf')
-rw-r--r-- | libqpdf/QPDF.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libqpdf/QPDF.cc b/libqpdf/QPDF.cc index 16641247..56555261 100644 --- a/libqpdf/QPDF.cc +++ b/libqpdf/QPDF.cc @@ -1117,6 +1117,11 @@ QPDF::readObject(PointerHolder<InputSource> input, else { QTC::TC("qpdf", "QPDF stream without newline"); + if (! QUtil::is_space(ch)) + { + QTC::TC("qpdf", "QPDF stream with non-space"); + input->unreadCh(ch); + } warn(QPDFExc(qpdf_e_damaged_pdf, input->getName(), this->last_object_description, input->tell(), |