summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2019-01-04 17:50:02 +0100
committerJay Berkenbilt <ejb@ql.org>2019-01-04 17:55:42 +0100
commit837dcf8fc2546a80f205a0c4c53e5a1545c53a84 (patch)
tree8c21738d5bb958faadb36ffdaff3f4dbc82cbb35 /include
parenta01359189b32c60c2d55b039f7aefd6c3ce0ebde (diff)
downloadqpdf-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.hh1
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,