2020.12.01 20:44 "[Tiff] Question about difference in TIFFReadEncodedStrip behavior between libtiff versions", by Nalini Vishnoi

2020.12.08 15:29 "Re: [Tiff] Question about difference in TIFFReadEncodedStrip behavior between libtiff versions", by Even Rouault

I encountered a difference in behavior of "TIFFReadEncodedStrip" function between v4.0.0 and v4.0.10 when reading a 25MB TIFF file. Please note the file has a single strip as an image.

I understand that a lot of code changes have been made to this function between these two library > versions, however, in the older version 4.0.0, I am able to read the file but with the newer version 4.0.10, I get an error:

The change of behaviour was due to a commit between 4.0.8 and 4.0.9. Your TIFF file is badly broken regarding StripByteCount and StripOffsets content. You must consider you lucky that libtiff managed to read it.

(oops sorry email sent before I finished it)

anyway, I put in

https://gitlab.com/libtiff/libtiff/-/commit/f13cf46b6ecb97503afcfa6f41a18d6697076179

a change that restores the ability to read that file. But it could easily got unreadable in later versions or in other software.

Even

Spatialys - Geospatial professional services
http://www.spatialys.com