1994.08.02 21:33 "Re: Problems with v3.3 Alpha 015", by Dan McCoy
I'm running the aforementioned software on a DEC Alpha (OSF 2.0), and the code chokes on the 'jello.tif' image in the standard image set.
tiff2ps has this to say:
../../tiff/jello.tif: PackBitsDecode: Not enough data for scanline 27.
And in a new version of XV that I'm working on (using this library), I get the following errors: (with appropriate fprintf's stuck in PackBitsDecode())
Anyhow, I was wondering if anyone can confirm that there's a problem with 3.3a015, a problem with 3.3a015 on a 64-bit machine, or what...
Nothing to do with word size.
Looks like a bug introduced into tif_packbits.c. This wasn't in the last version I grabbed. Simple fix, delete one line.
% diff tif_packbits.c.orig tif_packbits.c.fixed
< cc -= n;
Somehow a line got added to PackBitsDecode making it decrement the input count by n instead of 1 in the case of a run-length-encoded byte. It runs out of input buffer pretty quickly that way.
Dan McCoy Pixar firstname.lastname@example.org