Skip to content

Fix cases where tif_curdir is set incorrectly

Su Laus requested to merge Su_Laus/libtiff:fix_CurDir_wrong_incrementing into master

Fix cases where the current directory number (tif_curdir) is set inconsistently or incorrectly, depending on the previous history.

See additional checks and tests in test/test_directory.c of this MR for intended setting of tif_curdir (i.e. TIFFCurrentDirectory(tif)).

Merge request reports