Bug 106056 - fax2ps gets stuck in endless loop
Summary: fax2ps gets stuck in endless loop
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: libtiff
Version: 9
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-10-02 12:37 UTC by Charles Lopes
Modified: 2007-04-18 16:58 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-06-17 13:22:04 UTC
Embargoed:


Attachments (Terms of Use)
tentative patch (356 bytes, text/plain)
2003-10-02 12:38 UTC, Charles Lopes
no flags Details

Description Charles Lopes 2003-10-02 12:37:01 UTC
Description of problem:
With some malformed tiff files, fax2ps can get stuck in an endless loop. It
happens quite often in our hylafax server (about every couple of hours).
Running fax2ps with gdb shows that it is stuck in a loop at faxps.c:86. In the
cases where runlength=-1, this loop can never end. I have a few broken tiff
files that I can e-mail privately if they are needed. I have a (maybe naive)
patch to the problem too that I'll try and attach here.
I submitted both bug and patch to libtiff.

Version-Release number of selected component (if applicable):
up to 3.5.7-12

How reproducible:
Every time when feeding broken tif to fax2ps
About every two hours in our fax server.

Steps to Reproduce:
1. fax2ps test.tif
    
Actual results:
fax2ps never stops

Expected results:
fax2ps exits


Additional info:

Comment 1 Charles Lopes 2003-10-02 12:38:22 UTC
Created attachment 94876 [details]
tentative patch

Comment 2 Charles Lopes 2004-06-17 11:02:10 UTC
My patch has been submitted and accepted upstream
(http://bugzilla.remotesensing.org/show_bug.cgi?id=404) quite some
time ago. Is there any plans on either using libtiff 3.6.1 or applying
the proposed patch to your RPMs? It's quite trivial and I've been
testing it on a very busy hylafax server for over half a year now.


Comment 3 Matthias Clasen 2004-06-17 13:22:04 UTC
libtiff 3.6.1 will be in FC3/RHEL4


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