Parsing of a specifically corrupted class file cause unexpected 
`ArrayIndexOutOfBoundsException` during label inflation.
This patch checks the valid range and throws expected 
`IllegalArgumentException` instead.
Relevant test is added.

Please review.

Thanks,
Adam

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

Commit messages:
 - 8332486: ClassFile API ArrayIndexOutOfBoundsException with label metadata

Changes: https://git.openjdk.org/jdk/pull/19304/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19304&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8332486
  Stats: 19 lines in 2 files changed: 18 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/19304.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19304/head:pull/19304

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

Reply via email to