Bug 195994 - writing (raw) PAM files with bytes_per_sample > 1 broken
Summary: writing (raw) PAM files with bytes_per_sample > 1 broken
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: netpbm
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Jindrich Novy
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks: FAST4.5APPROVED
TreeView+ depends on / blocked
 
Reported: 2006-06-20 08:15 UTC by Morten Sylvest Olsen
Modified: 2013-07-02 23:16 UTC (History)
2 users (show)

Fixed In Version: RHBA-2006-0651
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-10-11 19:14:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2006:0651 0 normal SHIPPED_LIVE netpbm bug fix update 2007-05-01 14:12:17 UTC

Description Morten Sylvest Olsen 2006-06-20 08:15:22 UTC
Description of problem:


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


How reproducible:

Always

Steps to Reproduce:
1. try to write a (raw) file with bytes_per_sample > 2
2. file is invalid
3.
  
Actual results:

invalid file of wrong size

Expected results:

a valid file...

Additional info:

The culprit is in lib/libpamwrite.c:

 switch(pamP->bytes_per_sample){
        case 1: format1BpsRow(pamP, tuplerow, outbuf, rowSizeP); break;
        case 2: format1BpsRow(pamP, tuplerow, outbuf, rowSizeP); break;
        case 3: format1BpsRow(pamP, tuplerow, outbuf, rowSizeP); break;
        case 4: format1BpsRow(pamP, tuplerow, outbuf, rowSizeP); break;

Which is obviously bogus.

This is fixed in version 1.33,  perhaps earlier, for fedora

Comment 1 Jindrich Novy 2006-06-27 08:44:31 UTC
Confirmed that this bug is present in netpbm-10.25 (RHEL4) and is fixed rawhide.

Comment 9 Red Hat Bugzilla 2006-10-11 19:14:39 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 the 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-2006-0651.html



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