-
Bug
-
Resolution: Fixed
-
P3
-
11.0.8, 16
-
b09
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8271856 | 17.0.2 | Jayathirth D V | P3 | Resolved | Fixed | b01 |
JDK-8276114 | 15.0.6 | Yuri Nesterenko | P3 | Resolved | Fixed | b02 |
JDK-8276115 | 13.0.10 | Yuri Nesterenko | P3 | Resolved | Fixed | b02 |
JDK-8271857 | 11.0.14-oracle | Jayathirth D V | P3 | Resolved | Fixed | b01 |
JDK-8271885 | 11.0.13 | Zhengyu Gu | P3 | Resolved | Fixed | b02 |
With JDK 11.0.7:
$ java --version
openjdk 11.0.7 2020-04-14
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.7+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.7+10, mixed mode)
$ java ./testImageIO.java
#### IMAGIO: DEBUGGING #######
1 Standard GIF image reader
2 Standard BMP Image Reader
3 Standard WBMP Image Reader
4 Standard PNG image reader
5 Standard JPEG Image Reader
6 Standard TIFF image reader
#### END DEBUG: IMAGIO #######
Read: SUCCESS
With JDK 11.0.8+:
$ java -version
openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.8+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.8+10, mixed mode)
[testimageio@b93e34df603d] 02:12:27 ~/testImageIO [] $
java ./testImageIO.java
#### IMAGIO: DEBUGGING #######
1 Standard TIFF image reader
2 Standard PNG image reader
3 Standard GIF image reader
4 Standard BMP Image Reader
5 Standard WBMP Image Reader
6 Standard JPEG Image Reader
#### END DEBUG: IMAGIO #######
Read: FAILED
java.lang.IndexOutOfBoundsException: off < 0 || len < 0 || off + len > b.length!
at java.desktop/javax.imageio.stream.ImageInputStreamImpl.readFully(ImageInputStreamImpl.java:346)
at java.desktop/com.sun.imageio.plugins.tiff.TIFFIFD.readFieldValue(TIFFIFD.java:326)
at java.desktop/com.sun.imageio.plugins.tiff.TIFFIFD.initialize(TIFFIFD.java:1088)
at java.desktop/com.sun.imageio.plugins.tiff.TIFFImageMetadata.initializeFromStream(TIFFImageMetadata.java:88)
at java.desktop/com.sun.imageio.plugins.tiff.TIFFImageReader.readMetadata(TIFFImageReader.java:319)
at java.desktop/com.sun.imageio.plugins.tiff.TIFFImageReader.seekToImage(TIFFImageReader.java:291)
at java.desktop/com.sun.imageio.plugins.tiff.TIFFImageReader.prepareRead(TIFFImageReader.java:964)
at java.desktop/com.sun.imageio.plugins.tiff.TIFFImageReader.read(TIFFImageReader.java:1140)
at java.desktop/javax.imageio.ImageIO.read(ImageIO.java:1468)
at java.desktop/javax.imageio.ImageIO.read(ImageIO.java:1315)
at testImageIO.main(testImageIO.java:23)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at jdk.compiler/com.sun.tools.javac.launcher.Main.execute(Main.java:404)
at jdk.compiler/com.sun.tools.javac.launcher.Main.run(Main.java:179)
at jdk.compiler/com.sun.tools.javac.launcher.Main.main(Main.java:119)
- backported by
-
JDK-8271856 IndexOutOfBoundsException while reading large TIFF file
-
- Resolved
-
-
JDK-8271857 IndexOutOfBoundsException while reading large TIFF file
-
- Resolved
-
-
JDK-8271885 IndexOutOfBoundsException while reading large TIFF file
-
- Resolved
-
-
JDK-8276114 IndexOutOfBoundsException while reading large TIFF file
-
- Resolved
-
-
JDK-8276115 IndexOutOfBoundsException while reading large TIFF file
-
- Resolved
-
- duplicates
-
JDK-8271281 com.sun.imagio.plugins.tiff.TIFFID.java:326 uses stream.readFully incorrectly
-
- Closed
-
- links to
-
Commit openjdk/jdk11u-dev/d05effd4
-
Commit openjdk/jdk13u-dev/855fede2
-
Commit openjdk/jdk15u-dev/8719fc4f
-
Commit openjdk/jdk/efcdcc7f
-
Review openjdk/jdk11u-dev/194
-
Review openjdk/jdk13u-dev/285
-
Review openjdk/jdk15u-dev/124
-
Review openjdk/jdk/4836