[gs-bugs] [Bug 691503] Regression: ghostscript produces bad pdf file starting with r8445

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Thu Jul 29 13:56:13 UTC 2010


http://bugs.ghostscript.com/show_bug.cgi?id=691503

--- Comment #5 from Ken Sharp <ken.sharp at artifex.com> 2010-07-29 13:56:05 UTC ---
Created an attachment (id=6576)
 --> (http://bugs.ghostscript.com/attachment.cgi?id=6576)
proposed PDF interpreter patch

The attached patch contains a proposed patch to the PDF interpreter to better
resolve this problem.

After finding the page number of the /Dest for the outline, check to see if
FirstPage or LastPage is defined, and check the page number to ensure it is
between these values. If it isn't then return a rangecheck error. The error is
picked up in the caller, and a warning emitted that a link was omitted.

This prevents creating outline entries pointing to pages that won't exist after
PDF creation.

Assigning to Alex to review the PDF interpreter patch, I will commit the
pdfwrite patches.

-- 
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the gs-bugs mailing list