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 13:20:12 UTC 2024


On Mon, 10 Jun 2024 11:02:19 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

> We shouldn't specify a wrong array length which causes undefined behavior. Using a "flexible array member".

Ah, flexible array members are C99, but not C++. GCC supports it, but obviously not your MSVC.

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

PR Comment: https://git.openjdk.org/jdk/pull/19623#issuecomment-2158359684


More information about the hotspot-runtime-dev mailing list