avoid looping badly on IFD loops in TIFF images, assuming a recent enough libtiff
authorTony Cook <tony@develop-help.com>
Mon, 15 Aug 2011 08:46:17 +0000 (18:46 +1000)
committerTony Cook <tony@develop-help.com>
Mon, 15 Aug 2011 08:46:17 +0000 (18:46 +1000)
commit69287763470d17ee81eb8ccc21abb3953955ff48
treef2dfd4726542b262c65e1afee708fb31f74a046b
parent6b7197d0725b26168a17bd50802388da71c88199
avoid looping badly on IFD loops in TIFF images, assuming a recent enough libtiff

Switch to TIFFReadDirectory() instead of TIFFSetDirectory(), since
TIFFReadDirectory() does IFD loop detection.

Unfortunately it doesn't return an indication that there *is* a loop,
it just indicates the end of the chain, so we can't warn the caller
about the problem.
TIFF/imtiff.c
TIFF/t/t10tiff.t