Hylafax Mailing List Archives

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

[hylafax-users] Solution to files corrupted by libtiff 3.6.0 on SuSE 9.1



Hi there

To fix received faxes mangled by unpatched libtiff 3.6.0 on SuSE
9.1, you can use the following filter on the corrupted fax file:

#! /usr/bin/perl
# Public domain
use English;
undef $IFS;
while(<>) {
	s{\x01\x03\x00\x01\x00\x00\x00\x02\x00}
	 {\x01\x03\x00\x01\x00\x00\x00\x01\x00}sg;
	print;
}

The code searches for the 'fillorder' tag and changes the setting
from 0x02 to 0x01.  The bug in libtiff which corrupted the files
we received seems to be that the fill order which the encoder
used did not match the fill order in the header.  Note that this
filter will corrupt good faxes just as well as it repairs
corrupted faxes.

&:-)


-- 
I once installed Linux on my vacuum cleaner ... but it sucked!

____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services