AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2000.07.06 04:06 "libtiff crash with G4 file", by peters
2000.07.06 11:15 "Re: libtiff crash with G4 file", by Ivo
2000.07.07 03:47 "Re: libtiff crash with G4 file", by Frank Warmerdam
2000.07.12 04:50 "Re: libtiff crash with G4 file", by peters

2000.07.12 04:50 "Re: libtiff crash with G4 file", by peters

I have resolved the problem. It was the old uint16 versus uint32 problem. This stuff seems to have been forgotten when the changes from shorts to longs happened for the runs arrays. The diff before is for the file tif_fax3.c against version 3.5.5

174c174
< sp->refruns[0] = (uint16) sp->b.rowpixels;
---
> sp->refruns[0] = (uint32) sp->b.rowpixels;
377c377
< run = runs[0] = (uint16) (lastx - x);
---
> run = runs[0] = (uint32) (lastx - x);

Can someone apply this to the CVS tree so it appears in the next version?

Thanks,

--
Peter Skarpetis
Serendipity Software Pty Ltd
67 Fitzroy Street
Surry Hills NSW 2010
Sydney Australia

Phone: +612 93321788     
Fax:   +612 93321766
email: peters@serendipity-software.com.au
WWW:   http://www.riponce.com