[OpenJDK 2D-Dev] RFR: 8154228: [TIFF] IIOException: "Insufficient data offsets or byte counts" when loading test image

Brian Burkhalter brian.burkhalter at oracle.com
Thu Dec 29 22:25:10 UTC 2016

Please review at your convenience.

Issue:	https://bugs.openjdk.java.net/browse/JDK-8154228
Patch:	http://cr.openjdk.java.net/~bpb/8154228/webrev.00/

The problem is that the test image XING_T24.TIF is missing the StripByteCounts field which is required by the TIFF specification. The solution for the case where the image data are uncompressed and the offsets to the data packets (strips or tiles) are known, is to compute the number of bytes in each packet provided the information needed to do so is present in the image.



More information about the 2d-dev mailing list