From 837dcf8fc2546a80f205a0c4c53e5a1545c53a84 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 4 Jan 2019 11:50:02 -0500 Subject: 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. --- include/qpdf/QPDF.hh | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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 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, -- cgit v1.2.3-54-g00ecf