Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 574362

Summary: xwdtopnm generates incorrect ppm output for xwd dump of an rdesktop screen
Product: Red Hat Enterprise Linux 5 Reporter: ritz <rkhadgar>
Component: netpbmAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: Petr Šplíchal <psplicha>
Severity: high Docs Contact:
Priority: high    
Version: 5.4CC: ohudlick, pknirsch, psplicha, rvokal, spoyarek
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 06:48:12 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
patch based on upstream none

Description ritz 2010-03-17 11:08:33 UTC
Created attachment 400717 [details]
patch based on upstream

Description of problem:
xwdtopnm produces incorrect ppm output for xwd dump of an rdesktop screen

Version-Release number of selected component (if applicable):
netpbm-10.35.58.x

How reproducible:
always

Steps to Reproduce:
1. Connect to a Windows XP system using rdesktop:
rdesktop 192.168.1.100
2.Get an xwd dump of the rdesktop screen by running the following command and selecting the rdesktop screen with the mouse:
xwd -screen -frame > out.xwd
3. Convert the xwd dump to ppm format using xwdtopnm
xwdtopnm out.xwd > out.ppm
4. View both images:
display out.xwd
display out.ppm
  
Actual results:
out.ppm has incorrect colors

Expected results:
out.ppm show show the correct image

Additional info:

    * xwd, when run on the rdesktop window, generates a DirectColor image with 24bpp depth and BGR layout and MSB bit order.
    * The header on the xwd image however claims that the image has an RGB layout and LSB bit order., which leads the image colors to be read incorrectly by xwdtopnm
    * ImageMagick and Gimp read the image correctly, hence this is a bug in xwd which has been fixed upstream in netpbm 10.35.64 , thanks to Siddhesh for tracking this down, along with the patch

Comment 2 RHEL Program Management 2010-08-09 19:52:42 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 3 RHEL Program Management 2011-05-31 15:44:41 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 7 errata-xmlrpc 2012-02-21 06:48:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0287.html