Integrated: 8331920: ubsan: g1CardSetContainers.inline.hpp:266:5: runtime error: index 2 out of bounds for type 'G1CardSetHowl::ContainerPtr [2]' reported

Ivan Walulya iwalulya at openjdk.org
Wed May 22 13:48:08 UTC 2024


On Mon, 20 May 2024 08:17:41 GMT, Ivan Walulya <iwalulya at openjdk.org> wrote:

> Hi all,
> 
> Please review this change to improve access to G1CardSetContainer VLA elements. Instead of  straightforward indexing, we obscure access through a base pointer and offsets to reduce the possibility of UB. 
> 
> Testing: Tier 1-3
>               - Local testing on Mac with `--enable-ubsan`.

This pull request has now been integrated.

Changeset: 92d33501
Author:    Ivan Walulya <iwalulya at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/92d33501e091bdfaab52886078053b849a5a8f68
Stats:     36 lines in 3 files changed: 24 ins; 2 del; 10 mod

8331920: ubsan: g1CardSetContainers.inline.hpp:266:5: runtime error: index 2 out of bounds for type 'G1CardSetHowl::ContainerPtr [2]' reported

Reviewed-by: tschatzl, aboldtch

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

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


More information about the hotspot-gc-dev mailing list