Integrated: 8331940: ClassFile API ArrayIndexOutOfBoundsException with certain class files

Adam Sotona asotona at openjdk.org
Wed May 15 16:17:19 UTC 2024


On Tue, 14 May 2024 13:18:51 GMT, Adam Sotona <asotona at openjdk.org> wrote:

> 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

This pull request has now been integrated.

Changeset: 42ccb743
Author:    Adam Sotona <asotona at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/42ccb74399113a3d59ce016483518f033dd6e010
Stats:     20 lines in 2 files changed: 18 ins; 0 del; 2 mod

8331940: ClassFile API ArrayIndexOutOfBoundsException with certain class files

Reviewed-by: liach, psandoz

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

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


More information about the core-libs-dev mailing list