RFR: 8331940: ClassFile API ArrayIndexOutOfBoundsException with certain class files
Adam Sotona
asotona at openjdk.org
Tue May 14 13:25:05 UTC 2024
Class file with `LineNumberTable` attribute element pointing behind the bytecode array throws `ArrayIndexOutOfBoundsException`.
This patch performs the check and throws expected `IllegalArgumentException` instead.
Relevant test is added.
Please review.
Thanks,
Adam
-------------
Commit messages:
- 8331940: ClassFile API ArrayIndexOutOfBoundsException with certain class files
Changes: https://git.openjdk.org/jdk/pull/19230/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19230&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8331940
Stats: 20 lines in 2 files changed: 18 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/19230.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/19230/head:pull/19230
PR: https://git.openjdk.org/jdk/pull/19230
More information about the core-libs-dev
mailing list