Closed raminfp closed 3 years ago
Your tiff "file" bytes are invalid. Specifies a -2147483648 offset in bytes of the first image file directory.
gdalinfo's error
ERROR 1: TIFFFetchDirectory:test.tiff: Can not read TIFF directory count
ERROR 1: TIFFReadDirectory:Failed to read directory at offset 2147483648
The index out of bounds exception occurs trying to read the specified bytes outside of the total provided bytes. Not really a "security" issue.
These changes on the develop branch will give you a better error message.
mil.nga.tiff.util.TiffException: Byte offset out of range. Total Bytes: 25, Byte offset: 2147483648
Hi,
There is bug in the
TiffReader.readTiff(input);
Version Information:
Output:
Steps to Reproduce:
Additional Information:
Thanks, Ramin