RFR: 8336833: Endless loop in Javap ClassWriter
Adam Sotona
asotona at openjdk.org
Fri Jul 19 15:37:00 UTC 2024
Artificially corrupted class with overflowing max - min values of `tableswitch` instruction cause infinite loop in `jdk.internal.classfile.impl.CodeImpl::inflateJumpTargets`
This patch fixes the overflow and adds relevant test.
Please review.
Thank you,
Adam
-------------
Commit messages:
- 8336833: Endless loop in Javap ClassWriter
Changes: https://git.openjdk.org/jdk/pull/20258/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20258&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8336833
Stats: 24 lines in 2 files changed: 22 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/20258.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/20258/head:pull/20258
PR: https://git.openjdk.org/jdk/pull/20258
More information about the core-libs-dev
mailing list