Bug 476867 - tifftopnm, sgitopnm and pnmtofiasco fail to read stdin
Summary: tifftopnm, sgitopnm and pnmtofiasco fail to read stdin
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: netpbm
Version: 5.3
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Jindrich Novy
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On: 479017
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-17 16:28 UTC by Petr Šplíchal
Modified: 2013-07-02 23:33 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 09:19:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:1268 0 normal SHIPPED_LIVE netpbm bug fix update 2009-09-01 09:30:26 UTC

Description Petr Šplíchal 2008-12-17 16:28:58 UTC
Description of problem:

When an image file is sent to pnmtofiasco stdin, the tool reports an error and does not convert the file as it is supposed according to manpage:

   This program is part of Netpbm. pnmtofiasco compresses the named pbm, pgm,
   or ppm image files, or Standard Input if no file is named, and produces a
   FIASCO file on Standard Output.

Version-Release number of selected component (if applicable):
netpbm-10.35-6.1.el5_2.2.x86_64
netpbm-10.35-6.1.el5_2.2.i386
netpbm-progs-10.35-6.1.el5_2.2.x86_64

How reproducible:
Always

Steps to Reproduce:
cat test.ppm | pnmtofiasco >test.fiasco
  
Actual results:
pnmtofiasco: bad magic number - not a ppm, pgm, or pbm file

Expected results:
100%  
100%  
100%  
and file converted

Additional info:
When a filename is specified on the command line everything works ok:
pnmtofiasco test.ppm >test.fiasco
100%  
100%  
100%

Comment 2 Petr Šplíchal 2008-12-18 11:46:05 UTC
Similarly sgitopnm fails to read data on stdin:

# pnmtosgi test.ppm > test.sgi

# file test.sgi
test.sgi: SGI image data, RLE, 3-D, 100 x 100, 3 channels

# sgitopnm test.sgi > back.pnm
sgitopnm: writing PPM image

# cat test.sgi | sgitopnm > back.pnm
sgitopnm: seek error for offset 2912

Comment 3 Petr Šplíchal 2008-12-18 11:53:59 UTC
And the same failure for tifftopnm:

# pnmtotiff test.ppm > test.tiff
pnmtotiff: computing colormap...
pnmtotiff: 16 colors found

# file test.tiff
test.tiff: TIFF image data, little-endian

# tifftopnm test.tiff > back.pnm
tifftopnm: writing PPM file

# cat test.tiff | tifftopnm > back.pnm
TIFFReadDirectory: Standard Input: Seek error accessing TIFF directory.
tifftopnm: error opening standard input as TIFF file

Comment 6 RHEL Program Management 2009-03-26 17:07:45 UTC
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".

Comment 11 errata-xmlrpc 2009-09-02 09:19:06 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-2009-1268.html


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