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

Martin Doerr mdoerr at openjdk.org
Mon Jun 10 13:34:22 UTC 2024


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

Martin Doerr has updated the pull request incrementally with one additional commit since the last revision:

  Flexible array members are not specified by C++.

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/19623/files
  - new: https://git.openjdk.org/jdk/pull/19623/files/6a66518a..5b5b903d

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

  Stats: 5 lines in 1 file changed: 1 ins; 0 del; 4 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