Summary: | pdfwrite segfault | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Marc Lasson <marc.lasson+bugghostscript> |
Component: | PDF Writer | Assignee: | Ken Sharp <ken.sharp> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | 9.07 | ||
Hardware: | PC | ||
OS: | Linux | ||
See Also: | http://bugs.ghostscript.com/show_bug.cgi?id=694319 | ||
Customer: | Word Size: | --- | |
Attachments: | a pdf file needed to reproduce the bug |
Description
Marc Lasson
2013-03-18 01:14:12 UTC
The problem occurs on page 10 and appears to be a broken type 1 font. Adobe Acrobat also complains 'Cannot extract the embedded font XYATIP10' so there's obviously something wrong. Nevertheless Ghostscript shouldn't seg fault. The problem is that the fonts XYATIP10 and XYBTIP10 are totally broken. I have improved the robustness of the pdfwrite code in the face of fonts broken in this way, and the file now runs to completion. Rather than signalling an error on the broken fonts I've chosen to not embed them in the output, but to leave the font call in place. This means that systems which have the fonts available will be able to substitute these and display the PDF as intended. Systems that don't will display some kind of substitute, which will of course be incorrect, but its no worse than the situation with the existing file. Fixed in commit ec0a5d96d02576c53cef22fe3e9bde5547c2f4ee |