On Mon, 15 Nov 2021 08:06:13 GMT, Jayathirth D V <j...@openjdk.org> wrote:
>> Masanori Yano has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - 8262297: ImageIO.write() method will throw IndexOutOfBoundsException >> - 8262297: ImageIO.write() method will throw IndexOutOfBoundsException > > src/java.desktop/share/classes/com/sun/imageio/plugins/bmp/BMPImageWriter.java > line 1459: > >> 1457: int biType = imgType.getBufferedImageType(); >> 1458: int bpp = imgType.getColorModel().getPixelSize(); >> 1459: if (bpp != 0 && bpp != 1 && bpp != 4 && bpp != 8 && bpp != 16 >> && bpp != 24 && bpp != 32) { > > This change looks good to me. Probably the exception message caused by this should be updated as well? Currently, it takes care of compression only. ------------- PR: https://git.openjdk.java.net/jdk/pull/6151