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

Martin Doerr mdoerr at openjdk.org
Fri Jun 14 17:20:31 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:

  Use _cloned_vtable[1] and address computation.

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

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

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

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