--- libtiff/tif_dirread.c +++ libtiff/tif_dirread.c @@ -870,7 +870,7 @@ register TIFFDirEntry *dp; register TIFFDirectory *td = &tif->tif_dir; - uint16 i; + uint32 i; if (td->td_stripbytecount) _TIFFfree(td->td_stripbytecount);