Bug 605219

Summary: ghostscript fails to display/convert PDF from Xerox WorkCentre
Product: Red Hat Enterprise Linux 5 Reporter: Olivier Fourdan <ofourdan>
Component: ghostscriptAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: QE Internationalization Bugs <qe-i18n-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 5.5CC: kem, ktakemur, pknirsch, tis
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ghostscript-8.70-1.el5 Doc Type: Bug Fix
Doc Text:
Attempting to process a PDF file generated by Xerox WorkCentre resulted in an empty output. This was caused by the fact that in these documents, the segment data length field of the last segment is set to "-1", which was not handled correctly. With this update, PDF files generated by Xerox WorkCentre are now rendered as expected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-13 22:07:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Proposed patch from upstream svn commit 8778 none

Description Olivier Fourdan 2010-06-17 13:08:40 UTC
Description of problem:

ghostscript 8.15 fails to parse and display PDF files from Xerox WorkCentre which have the segment data length field of the last segment set to -1

Version-Release number of selected component (if applicable):

ghostscript-8.15.2-9.11.el5

How reproducible:

Always

Steps to Reproduce:
1. Download and untar the PDF files attached
2. gs -sDEVICE=x11 <file>.pdf
  
Actual results:

The page is blank

Expected results:

The text is visible

Additional info:

This is upstream bugs 689841 and 689852, fixed upstream in svn by revision r8778.

Patch attached

Comment 2 Olivier Fourdan 2010-06-17 13:15:01 UTC
Created attachment 424809 [details]
Proposed patch from upstream svn commit 8778

This is from upstream commit 8778:

       * [r8778] jbig2dec/jbig2_page.c: Work around broken JBIG2Decode
         streams created by several versions of
         Xerox WorkCentre. Bugs 689841 and 689852.
        
         In these streams, a segment data length field is written as -1
         expecting the decoder to infer it from the length of the
         remaining
         data.

Comment 4 Tim Waugh 2010-07-16 15:13:23 UTC
*** Bug 501714 has been marked as a duplicate of this bug. ***

Comment 5 Jaromir Hradilek 2010-07-20 10:00:52 UTC
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.

New Contents:
Attempting to process a PDF file generated by Xerox WorkCentre resulted in an empty output. This was caused by the fact that in these documents, the segment data length field of the last segment is set to "-1", which was not handled correctly. With this update, PDF files generated by Xerox WorkCentre are now rendered as expected.

Comment 11 errata-xmlrpc 2011-01-13 22:07:29 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0137.html