> 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.
Jayathirth D V has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains five additional commits since the last revision: - Update test to handle all regression cases - Add checks at other places also - Merge remote-tracking branch 'upstream/master' into jpeg_getImageTypes - Check only for negative index - 8364135: JPEGImageReader.getImageTypes() should throw exception for non-zero image index ------------- Changes: - all: https://git.openjdk.org/jdk/pull/26522/files - new: https://git.openjdk.org/jdk/pull/26522/files/cfc24f34..a114acf4 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=26522&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26522&range=00-01 Stats: 22793 lines in 627 files changed: 14398 ins; 6572 del; 1823 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