From d0e99f195a987c483bbb6c5449cf39bee34e08a1 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 16 Feb 2018 17:25:27 -0500 Subject: More robust handling of type errors Give objects descriptions and context so it is possible to issue warnings instead of fatal errors for attempts to access objects of the wrong type. --- ChangeLog | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 0d6ab5ac..1d551461 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,15 @@ 2018-02-17 Jay Berkenbilt + * Major enhancements to handling of type errors within the qpdf + library. This fix is intended to eliminate those annoying cases + where qpdf would exit with a message like "operation for + dictionary object attemped on object of wrong type" without + providing any context. Now qpdf keeps enough context to be able to + issue a proper warning and to handle such conditions in a sensible + way. This should greatly increase the number of bad files that + qpdf can recover, and it should make it much easier to figure out + what's broken when a file contains errors. + * Error message fix: replace "file position" with "offset" in error messages that report lexical or parsing errors. Sometimes it's an offset in an object stream or a content stream rather than -- cgit v1.2.3-54-g00ecf