2022.12.09 15:48 "[Tiff] libtiff v4.5.0 release candidate available", by Even Rouault

2022.12.11 21:04 "Re: [Tiff] libtiff v4.5.0 release candidate available", by Even Rouault

I've just skimmed through Debian backported patches on top of 4.1.0 referenced at https://packages.ubuntu.com/focal/libtiff-dev (http://archive.ubuntu.com/ubuntu/pool/main/t/tiff/tiff_4.1.0+git191117-2ubuntu0.20.04.7.debian.tar.xz) and none of them are IFD looping detection related.

Anyway, given the following test program

int main()
{
     TIFF* tiff = TIFFOpen("/home/even/Téléchargements/gray.movie.u2.tif", "r");
     int incr = 1;
     while(TIFFReadDirectory(tiff))
     {
         incr ++;
     }
     printf("%d\n", incr);
}

with 4.4.0 I get

TIFFCheckDirOffset: Cannot handle more than 65535 TIFF directories.

and with master I get:

_TIFFCheckDirNumberAndOffset: Cannot handle more than 65535 TIFF directories.
TIFFReadDirectory: Warning, Didn't read next directory due to IFD looping at offset 0xa7ff1e (11009822) to offset 0xa7ffc4 (11009988).

So except the extra error message that is a bit misleading, we didn't really regress. I'd be tempted to release with the current state of master.

http://www.spatialys.com
My software is free, but my time generally not.