diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-01-04 17:50:02 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-01-04 17:55:42 +0100 |
commit | 837dcf8fc2546a80f205a0c4c53e5a1545c53a84 (patch) | |
tree | 8c21738d5bb958faadb36ffdaff3f4dbc82cbb35 /include | |
parent | a01359189b32c60c2d55b039f7aefd6c3ce0ebde (diff) | |
download | qpdf-837dcf8fc2546a80f205a0c4c53e5a1545c53a84.tar.zst |
Don't call assert while checking linearization data (fixes #209, #231)
Instead of calling assert for problems found during checking
linearization data, throw an exception which is later caught and
issued as an error. Ideally we would handle errors more robustly, but
this is still a significant improvement.
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDF.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index 34e0ad31..1b771278 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -726,6 +726,7 @@ class QPDF PointerHolder<QPDFObject> resolve(int objid, int generation); void resolveObjectsInStream(int obj_stream_number); void findAttachmentStreams(); + void stopOnError(std::string const& message); // Calls finish() on the pipeline when done but does not delete it bool pipeStreamData(int objid, int generation, |