Integrated: 8321540: ClassSignature.parseFrom() throws StringIndexOutOfBoundsException for invalid signatures

Adam Sotona asotona at openjdk.org
Tue Jan 2 12:42:52 UTC 2024


On Mon, 11 Dec 2023 15:17:49 GMT, Adam Sotona <asotona at openjdk.org> wrote:

> ClassFile API models and parses signatures, however parsing of the signatures mostly throws IIOBE when it fails.
> This patch improves SignaturesImpl parsing methods implementation and errors handling and adds relevant negative tests.
> The parser is not an ultimate signatures validator yet, however this is a step forward to it.
> 
> Please review.
> 
> Thanks,
> Adam

This pull request has now been integrated.

Changeset: f9aec02f
Author:    Adam Sotona <asotona at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/f9aec02f3caabb6bc06672c214127f8912449615
Stats:     136 lines in 2 files changed: 103 ins; 5 del; 28 mod

8321540: ClassSignature.parseFrom() throws StringIndexOutOfBoundsException for invalid signatures

Reviewed-by: jpai

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

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


More information about the core-libs-dev mailing list