Bug 106056

Summary: fax2ps gets stuck in endless loop
Product: [Retired] Red Hat Linux Reporter: Charles Lopes <tjarls>
Component: libtiffAssignee: Matthias Clasen <mclasen>
Status: CLOSED NEXTRELEASE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 9   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-06-17 13:22:04 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
tentative patch none

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