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

Ivan Walulya iwalulya at openjdk.org
Wed May 22 07:56:15 UTC 2024


> 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`.

Ivan Walulya has updated the pull request incrementally with one additional commit since the last revision:

  Axel suggestion

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/19300/files
  - new: https://git.openjdk.org/jdk/pull/19300/files/9ea09a44..13652dc7

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=19300&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=19300&range=00-01

  Stats: 2 lines in 1 file changed: 0 ins; 1 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/19300.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19300/head:pull/19300

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


More information about the hotspot-gc-dev mailing list