2010.02.11 21:56 "[Tiff] TIFF and IJG JPEG 8", by Bob Friesenhahn

2010.03.16 21:08 "Re: [Tiff] TIFFVStripSize overflow, JPEG decoding", by Bob Friesenhahn

I am trying to develop software to support a new tiff file source of large medical images. Using libtiff I am encountering problems with TIFFOpen, I suspect because the dimensions are causing overflow of 32-bit variables (image dimensions in the tens-of-thousands).

I forget the exact JPEG limit, but I see that these TIFFs are JPEG compressed organized as strips and the strip width is close to the JPEG limits. Perhaps this is where some overflow is happening (if it is happening).

Feel free to test with my free software (GraphicsMagick, http://www.GraphicsMagick.org/) with logging enabled (-debug coder,exception) since that helps to see many details.

You forgot to tell us what operating system, compiler, and build options that you used. Libtiff has certainly been used on files of this size but perhaps there is something unusal about your files or the build is defective.

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/