| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2010.03.19 15:52 "Re: TIFFVStripSize overflow, JPEG decoding", by Adam GoodeOn 03/17/2010 10:40 PM, Olivier Paquet wrote: > On Wed, Mar 17, 2010 at 8:15 PM, Adam Goode <adam@spicenitz.org> wrote: >>> >>> I already tried using libtiff 4.0.2 to read the header and encountered >>> the same overflow message. From what I can tell TIFFVStripSize still >>> uses 32-bit representation in 4.0.2. >>> >> >> Interesting, I did get tiffinfo from CVS to read the header. Possibly >> there was some fix there not in the beta, or possibly it was because I >> compiled it on a 64-bit machine? > > Yes, TIFFVStripSize returns tmsize_t which is pointer sized. So it > will be fine on 64-bit systems with libtiff 4. > Hmm, this seems a little odd. I would expect libtiff 4 to not have any machine-specific sizes, but to instead use the same size types on all architectures. It makes reading this kind of file problematic across systems. Since this NDPI file is really a horrible abuse of TIFF, I'm not too upset that libtiff can't read it. But it would be nice if libtiff could give a tiffdump-like option of just reading headers without interpreting them too much. This is all that is needed for this kind of file. Adam |
|||||||