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.
------------- Commit messages: - 8364135: JPEGImageReader.getImageTypes() should throw exception for non-zero image index Changes: https://git.openjdk.org/jdk/pull/26522/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26522&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8364135 Stats: 67 lines in 2 files changed: 67 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/26522.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/26522/head:pull/26522 PR: https://git.openjdk.org/jdk/pull/26522