RFR: 8331320: ClassFile API OutOfMemoryError with certain class files
Adam Sotona
asotona at openjdk.org
Tue Apr 30 15:37:15 UTC 2024
Class files with specifically corrupted tableswitch or lookupswitch instructions in the bytecode cause OutOfMemoryError while parsing with Class-File API.
This patch performs additional checks to avoid OOME and adds relevant tests.
Please review.
Thank you,
Adam
-------------
Commit messages:
- 8331320: ClassFile API OutOfMemoryError with certain class files
Changes: https://git.openjdk.org/jdk/pull/19024/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19024&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8331320
Stats: 60 lines in 2 files changed: 59 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/19024.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/19024/head:pull/19024
PR: https://git.openjdk.org/jdk/pull/19024
More information about the core-libs-dev
mailing list