[gs-bugs] [Bug 691439] New: segmentation fault when processes pdf file with CID fonts

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Fri Jul 2 14:13:15 UTC 2010


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

           Summary: segmentation fault when processes pdf file with CID
                    fonts
           Product: Ghostscript
           Version: 8.71
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P4
         Component: PDF Writer
        AssignedTo: ken.sharp at artifex.com
        ReportedBy: jszhao at yeah.net
         QAContact: gs-bugs at ghostscript.com
   Estimated Hours: 0.0


Created an attachment (id=6424)
 --> (http://bugs.ghostscript.com/attachment.cgi?id=6424)
pdf can cause pdfwrite corrupt.

Hi there,

I have a PDF with CID fonts. I hope to embed all CID fonts using
pdfwrite device from ghostscript. However, when i run the following command
(the PDF file is attached):

gswin32c.exe -sDEVICE=pdfwrite -o two_embed.pdf two.pdf

Then following error message appears:

"gswin32c.exe has encountered a problem and needs to close."

It seems a segmentation fault.

However, when I exchange the following two line in the PDF file,
gswin32c.exe give correct result.

/F1001 1 Tf 12.00 0.00 -0.00 12.00 62.40 81.20 Tm <c4e3bac3> Tj
/F1002 1 Tf 12.00 0.00 -0.00 12.00 62.40 119.42 Tm <c4e3bac3> Tj

When the PDF have only one CID font /F1001, it also cannot be processed
by pdfwrite. However, if the /F1001 replace by /F1002 or any other font,
the pdfwrite can process it. For example,

changing
/F1001 1 Tf 12.00 0.00 -0.00 12.00 233.07 81.20 Tm <c4e3bac3> Tj
to
/F1002 1 Tf 12.00 0.00 -0.00 12.00 233.07 81.20 Tm <c4e3bac3> Tj
or
/F1003 1 Tf 12.00 0.00 -0.00 12.00 233.07 81.20 Tm <c4e3bac3> Tj
or
...
However, I don't like to change the font.

All those PDF file could be viewed by Adobe Acorbat Reader, and
gswin32c.exe.

The ghostscript version is 8.71. I have test those PDF files on version 8.70,
8.60, 8.15, all worked well.

I think it is a bug of pdfwrite.

Jinsong

-- 
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