From 9b28933647f0a3ed535dd488c4526b75d1c10fc6 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 4 Nov 2021 11:55:36 -0400 Subject: Check object ownership when adding When adding a QPDFObjectHandle to an array or dictionary, if possible, check if the new object belongs to the same QPDF. This makes it much easier to find incorrect code than waiting for the situation to be detected when the file is written. --- ChangeLog | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 24bbc569..91301ae9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2021-11-04 Jay Berkenbilt + + * Add an extra check to the library to detect when foreign objects + are inserted directly (instead of using + QPDF::copyForeignObject) at the time of + insertion rather than when the file is written. Catching the error + sooner makes it much easier to locate the incorrect code. + 2021-11-03 Jay Berkenbilt * Bug fix: make overlay/underlay work on a page with no resource -- cgit v1.2.3-54-g00ecf