Integrated: 8336833: Endless loop in Javap ClassWriter

Adam Sotona asotona at openjdk.org
Mon Jul 22 07:36:34 UTC 2024


On Fri, 19 Jul 2024 15:32:24 GMT, Adam Sotona <asotona at openjdk.org> wrote:

> 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

This pull request has now been integrated.

Changeset: 0db6c15e
Author:    Adam Sotona <asotona at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/0db6c15efe255bd313fb2b827d2ee05171e62ae9
Stats:     24 lines in 2 files changed: 22 ins; 0 del; 2 mod

8336833: Endless loop in Javap ClassWriter

Reviewed-by: liach

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

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


More information about the core-libs-dev mailing list