2012.05.18 13:23 "[Tiff] TIFFGetField: count should be uint32_t (Bug in documentation)", by Sandro Mani
according to , when querying multi-valued fields with TiffGetField, count should be of a 16-bit unsigned integer. However, in various places in the source libtiff source code, a 32-bit unsigned integer is used. Indeed, a nasty bug I encountered was caused by count being 16 bits wide:
TIFFGetField(tif, TIFFTAG_IMAGEWIDTH, &width);
TIFFGetField(tif, TIFFTAG_MODELTIEPOINT, &count, &data);
=> Count overflowed into width
If my analysis is correct, I guess the documentation should be fixed.