Integrated: 8308445: Linker should check that capture state segment is big enough

Jorn Vernee jvernee at openjdk.org
Wed Jun 7 12:28:06 UTC 2023


On Tue, 6 Jun 2023 16:22:41 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

> Fix the bug mentioned in the JBS issue.
> 
> The implementation is updated to slice the capture state segment using the capture state layout. This checks both that the segment is big enough, and that it is properly aligned.
> 
> Additionally, I added a check for `MS::NULL` since this is also an illegal value we can catch early.
> 
> Test cases are added for all three invalid values.
> 
> Testing: `jdk_foreign` test suite.

This pull request has now been integrated.

Changeset: c49129f5
Author:    Jorn Vernee <jvernee at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/c49129f54580b431881ffdb97b5478aff6097154
Stats:     48 lines in 4 files changed: 46 ins; 1 del; 1 mod

8308445: Linker should check that capture state segment is big enough

Reviewed-by: mcimadamore

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

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


More information about the core-libs-dev mailing list