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:
Created attachment 94876 [details] tentative patch
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.
libtiff 3.6.1 will be in FC3/RHEL4