From e09ae710dc3bfe2b64d2905d4d62079f7e664498 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 17 Jan 2019 09:29:59 -0500 Subject: Add tests for shared font/xobject The tests are in a separate commit so the bug-fix commit can be taken as a patch for older versions. --- ChangeLog | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 8edf51c3..e1087f20 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,19 @@ +2019-01-17 Jay Berkenbilt + + * Fix data loss bug: qpdf was discarding referenced resources in + the case in which a page's resource dictionary contained an + indirect reference for either /Font or /XObject that contained + fonts or XObjects not referenced on all pages that shared the + resource. This was a "typo" in the code. The comment explained the + correct behavior, and the code was clearly intended to handle this + issue, but the implementation had an error in it. This is fixed by + a single-line change, which can be found in git commit + 4bc434000c42a7191e705c8a38216ca6743ad9ff. That commit can be used + as a patch that applies cleanly against qpdf 8.1.0 and forward. + The bug was introduced in version 8.1.0. For the record, this is + the first bug in qpdf's history that could result in silent loss + of data when processing a correct input file. Fixes #276. + 2019-01-12 Jay Berkenbilt * In the --pages option, allow the same page to be specified more -- cgit v1.2.3-54-g00ecf