RFR: 8346157: [Ubsan]: runtime error: pointer index expression with base 0x000000001000 overflowed to 0xfffffffffffffff0 [v2]
Amit Kumar
amitkumar at openjdk.org
Fri Jan 3 06:38:49 UTC 2025
On Thu, 2 Jan 2025 16:22:30 GMT, Gerard Ziemski <gziemski at openjdk.org> wrote:
> Do we need the casts here?
cast is required is here. because again `here` is `uintptr_t` datatype.
>so cast it to (void*) instead.
Sure, that was a mistake from my end. Initially I was casting whole thing to `void*` but then `here + sizeof(MallocHeader)` caused issue. So I casted to `uint8_t*` and later forget to update it.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22885#discussion_r1901504207
More information about the hotspot-runtime-dev
mailing list