Re: RFR: 8336833: Endless loop in Javap ClassWriter

2024-07-19 Thread Chen Liang
On Fri, 19 Jul 2024 15:32:24 GMT, Adam Sotona 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. >

Re: RFR: 8336833: Endless loop in Javap ClassWriter

2024-07-19 Thread Adam Sotona
On Fri, 19 Jul 2024 15:41:07 GMT, Chen Liang 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.

Re: RFR: 8336833: Endless loop in Javap ClassWriter

2024-07-19 Thread Chen Liang
On Fri, 19 Jul 2024 15:32:24 GMT, Adam Sotona 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. >

RFR: 8336833: Endless loop in Javap ClassWriter

2024-07-19 Thread Adam Sotona
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: -