[lworld] RFR: 8358093: [lworld] Crash when passing invalid constant pool index to early_larval frame
Matias Saavedra Silva
matsaave at openjdk.org
Thu Jun 12 20:05:42 UTC 2025
On Thu, 12 Jun 2025 16:06:52 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
>> An early_larval frame contains a set of constant pool indices that are meant to refer to NameAndTypes. These NameAndType entries should refer to strict fields which must be marked as unset and there exists a verify error and associated test to check this, but there are no checks to ensure the input values actually refer to a NameAndType or valid constant pool index.
>>
>> This patch introduces a new error case and adds a test case to `StrictInstanceFieldsTest`. Note that `StrictInstanceFieldsTest.java` is problem listed so the test will not be used until JTREG 7.6 is integrated. Verified with tier 1-5 tests.
>
> Looks good!
Thanks for the reviews @coleenp and @fparain!
-------------
PR Comment: https://git.openjdk.org/valhalla/pull/1484#issuecomment-2968013984
More information about the valhalla-dev
mailing list