-
Bug
-
Resolution: Fixed
-
P3
-
5.0, 8, 11, 13, 14, 15
-
b16
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8260645 | 13.0.7 | Ekaterina Vergizova | P3 | Resolved | Fixed | b01 |
JDK-8261065 | 13.0.6 | Ekaterina Vergizova | P3 | Resolved | Fixed | b01 |
JDK-8258023 | 11.0.11-oracle | Dukebot | P3 | Resolved | Fixed | b01 |
JDK-8251878 | 11.0.9 | Jayathirth D V | P3 | Resolved | Fixed | b04 |
GIF image reader throws misleading exception if image in question is truncated:
java.lang.IndexOutOfBoundsException: off < 0 || len < 0 || off+len > b.length || off+len < 0!
at javax.imageio.stream.FileCacheImageInputStream.read(FileCacheImageInputStream.java:151)
at com.sun.imageio.plugins.gif.GIFImageReader.getCode(GIFImageReader.java:306)
at com.sun.imageio.plugins.gif.GIFImageReader.read(GIFImageReader.java:881)
at javax.imageio.ImageIO.read(ImageIO.java:1422)
at javax.imageio.ImageIO.read(ImageIO.java:1326)
at imagedemo.Main.main(Main.java:23)
Also the problem is the same in 1.5.0_07 and in 6.0u1-b03.
Examples to truncated images are attached.
java.lang.IndexOutOfBoundsException: off < 0 || len < 0 || off+len > b.length || off+len < 0!
at javax.imageio.stream.FileCacheImageInputStream.read(FileCacheImageInputStream.java:151)
at com.sun.imageio.plugins.gif.GIFImageReader.getCode(GIFImageReader.java:306)
at com.sun.imageio.plugins.gif.GIFImageReader.read(GIFImageReader.java:881)
at javax.imageio.ImageIO.read(ImageIO.java:1422)
at javax.imageio.ImageIO.read(ImageIO.java:1326)
at imagedemo.Main.main(Main.java:23)
Also the problem is the same in 1.5.0_07 and in 6.0u1-b03.
Examples to truncated images are attached.
- backported by
-
JDK-8251878 GIF reader throws misleading exception with truncated images
- Resolved
-
JDK-8258023 GIF reader throws misleading exception with truncated images
- Resolved
-
JDK-8260645 GIF reader throws misleading exception with truncated images
- Resolved
-
JDK-8261065 GIF reader throws misleading exception with truncated images
- Resolved
(2 links to)