Integrated: 8364135: JPEGImageReader.getImageTypes() should throw exception for negative image index

Jayathirth D V jdv at openjdk.org
Mon Sep 1 08:09:52 UTC 2025


On Tue, 29 Jul 2025 05:38:00 GMT, Jayathirth D V <jdv at openjdk.org> wrote:

> We need to throw appropriate exception when we pass invalid image index values to ImageReader.getImageTypes().
> We throw IOOBE in all other plugins except JPEG, Added appropriate check to throw IOOBE when JpegImageReader has invalid image index.

This pull request has now been integrated.

Changeset: fe4c7a04
Author:    Jayathirth D V <jdv at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/fe4c7a0429a2cf9ef47701d68d0852ce44e1a9ab
Stats:     98 lines in 2 files changed: 95 ins; 2 del; 1 mod

8364135: JPEGImageReader.getImageTypes() should throw exception for negative image index

Reviewed-by: aivanov, prr, psadhukhan

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

PR: https://git.openjdk.org/jdk/pull/26522


More information about the client-libs-dev mailing list