Bug 605219 - ghostscript fails to display/convert PDF from Xerox WorkCentre
Summary: ghostscript fails to display/convert PDF from Xerox WorkCentre
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: ghostscript
Version: 5.5
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Tim Waugh
QA Contact: QE Internationalization Bugs
URL:
Whiteboard:
: 501714 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-17 13:08 UTC by Olivier Fourdan
Modified: 2018-11-14 19:02 UTC (History)
4 users (show)

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.
Clone Of:
Environment:
Last Closed: 2011-01-13 22:07:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed patch from upstream svn commit 8778 (1.24 KB, patch)
2010-06-17 13:15 UTC, Olivier Fourdan
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Ghostscript 689841 0 None None None Never
Red Hat Product Errata RHBA-2011:0137 0 normal SHIPPED_LIVE ghostscript bug fix and enhancement update 2011-01-12 19:26:44 UTC

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


Note You need to log in before you can comment on or make changes to this bug.