RFR: 8333639: ubsan: cppVtables.cpp:81:55: runtime error: index 14 out of bounds for type 'long int [1]'
Martin Doerr
mdoerr at openjdk.org
Mon Jun 10 12:39:12 UTC 2024
On Mon, 10 Jun 2024 11:13:11 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> This fixes the ubsan warning. However we have methods like ` intptr_t* cloned_vtable() { return &_cloned_vtable[0]; }` accessing the first element; are you sure that this always works ?
Yes, it's a flexible array member. I'm not changing the allocation.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19623#issuecomment-2158232988
More information about the hotspot-runtime-dev
mailing list