-
Bug
-
Resolution: Fixed
-
P2
-
11
-
b23
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8215121 | 11.0.3-oracle | Jayathirth D V | P2 | Resolved | Fixed | b01 |
JDK-8215022 | 11.0.3 | Jayathirth D V | P2 | Resolved | Fixed | master |
JDK-8215135 | 11.0.2 | Jayathirth D V | P2 | Resolved | Fixed | b07 |
A DESCRIPTION OF THE PROBLEM :
When I try to read some png files, I get exception:
at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:891)
at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.getImageMetadata(PNGImageReader.java:1799)
Caused by: javax.imageio.IIOException: tEXt chunk length is not proper
at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.parse_tEXt_chunk(PNGImageReader.java:575)
at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:847)
.. 28 more
I think there are errors in file PNGImageReader. For example on line 574:
if (textLength <= 0) {
throw new IIOException("tEXt chunk length is not proper");
}
Right condition is:
if (textLength < 0) {
throw new IIOException("tEXt chunk length is not proper");
}
Similar problem is on a few other lines.
FREQUENCY : always
When I try to read some png files, I get exception:
at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:891)
at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.getImageMetadata(PNGImageReader.java:1799)
Caused by: javax.imageio.IIOException: tEXt chunk length is not proper
at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.parse_tEXt_chunk(PNGImageReader.java:575)
at java.desktop/com.sun.imageio.plugins.png.PNGImageReader.readMetadata(PNGImageReader.java:847)
.. 28 more
I think there are errors in file PNGImageReader. For example on line 574:
if (textLength <= 0) {
throw new IIOException("tEXt chunk length is not proper");
}
Right condition is:
if (textLength < 0) {
throw new IIOException("tEXt chunk length is not proper");
}
Similar problem is on a few other lines.
FREQUENCY : always
- backported by
-
JDK-8215022 IIOException "tEXt chunk length is not proper" on opening png file
- Resolved
-
JDK-8215121 IIOException "tEXt chunk length is not proper" on opening png file
- Resolved
-
JDK-8215135 IIOException "tEXt chunk length is not proper" on opening png file
- Resolved
- relates to
-
JDK-8191023 PngReader throws NegativeArraySizeException when keyword length exceeds chunk size
- Resolved
- links to