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 11:08:35 UTC 2024


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

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

Commit messages:
 - 8333639: ubsan: cppVtables.cpp:81:55: runtime error: index 14 out of bounds for type 'long int [1]'

Changes: https://git.openjdk.org/jdk/pull/19623/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19623&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8333639
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/19623.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19623/head:pull/19623

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


More information about the hotspot-runtime-dev mailing list