Subject: | pdfapi2 regression 0ab55cd53 [Testcase] |
Date: | Mon, 3 Feb 2020 11:49:28 +0100 |
To: | bug-PDF-API2 [...] rt.cpan.org |
From: | Leon Winter <winter [...] bfw-online.de> |
Hi,
we are using your PDF::API2 module (via Debian) and just upgraded to a more
recent version where we noticed a bug:
Deep recursion on subroutine "PDF::API2::Basic::PDF::Objind::release" at /usr/share/perl5/PDF/API2/Basic/PDF/Objind.pm line 123.
at /usr/share/perl5/PDF/API2/Basic/PDF/Objind.pm line 122.
PDF::API2::Basic::PDF::Objind::release(PDF::API2::Outline=HASH(0x583c1788)) called at /usr/share/perl5/PDF/API2/Basic/PDF/Objind.pm line 122
I could identify the commit 0ab55cd535b3b3ac7f616589d00ff00864626030 as culprit.
Using the current version (at master) with this commit reverted we do not run
into this bug. We use the module to modify a 200+-page PDF to add outlines and
titles.
See my attached test case (Perl script) which I run on a empty 200+ page PDF
file which I also attached.
I created the PDF file this way:
convert xc:none -page A4 a.pdf
pdftk A=blank.pdf cat A A A A A A A A A A A A A A A A A A A A A A A A A A A A A
A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A
A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A
A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A
A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A A
A A A A A A A A A A A A A A A A A A A A A A A A A A output blank217.pdf
Then run the script with a current pdfapi2 in path, I did:
PERL5LIB=pdfapi2/lib perl -w testcase.pl
Output after regression:
Deep recursion on subroutine "PDF::API2::Basic::PDF::Objind::release" at
pdfapi2/lib/PDF/API2/Basic/PDF/Objind.pm line 123.
[...]
Output before regression (0ab55cd535b3b3ac7f616589d00ff00864626030):
(nothing)
Thanks,
Leon
Message body is not shown because sender requested not to inline it.
Message body not shown because it is not plain text.