tiffcrop.c: Potential mal-functioning
The return value of TIFFGetField
is not checked here:
https://gitlab.com/libtiff/libtiff/blob/master/tools/tiffcrop.c#L1337 https://gitlab.com/libtiff/libtiff/blob/master/tools/tiffcrop.c#L1338 https://gitlab.com/libtiff/libtiff/blob/master/tools/tiffcrop.c#L1339
While it is checked in other locations:
https://gitlab.com/libtiff/libtiff/blob/master/tools/tiffcrop.c#L1241 https://gitlab.com/libtiff/libtiff/blob/master/tools/tiffcrop.c#L1242 https://gitlab.com/libtiff/libtiff/blob/master/tools/tiffcrop.c#L1243 https://gitlab.com/libtiff/libtiff/blob/master/tools/tiffcrop.c#L5846 ...