RFR: 8262297: ImageIO.write() method will throw IndexOutOfBoundsException [v5]

Yanli Sang duke at openjdk.java.net
Tue Dec 14 06:49:18 UTC 2021


On Wed, 1 Dec 2021 10:05:31 GMT, Jayathirth D V <jdv at openjdk.org> wrote:

>> Masanori Yano has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8262297: ImageIO.write() method will throw IndexOutOfBoundsException
>
> This change has caused regression : https://bugs.openjdk.java.net/browse/JDK-8278047
> So this change will be reverted for further analysis.

@jayathirthrao  @masyano @prrace @AlanBateman We also meet the same issue in  PNGImageWriter.write,  Do you have any idea how to fix it ? Thanks in advance. 

at java.desktop/javax.imageio.ImageWriter.write(ImageWriter.java:613)
at java.desktop/com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:1283)
at java.desktop/com.sun.imageio.plugins.png.PNGImageWriter.write_IDAT(PNGImageWriter.java:1050)
at java.desktop/com.sun.imageio.plugins.png.IDATOutputStream.finish(PNGImageWriter.java:273)
at java.desktop/com.sun.imageio.plugins.png.IDATOutputStream.deflate(PNGImageWriter.java:248)
at java.desktop/com.sun.imageio.plugins.png.IDATOutputStream.finishChunk(PNGImageWriter.java:200)
at java.desktop/javax.imageio.stream.FileCacheImageOutputStream.seek(FileCacheImageOutputStream.java:170)
java.lang.IndexOutOfBoundsException

-------------

PR: https://git.openjdk.java.net/jdk/pull/6151



More information about the client-libs-dev mailing list