RFR: 8332818: ubsan: archiveHeapLoader.cpp:70:27: runtime error: applying non-zero offset 18446744073707454464 to null pointer

David Holmes dholmes at openjdk.org
Thu Jun 13 02:49:11 UTC 2024


On Wed, 12 Jun 2024 06:13:40 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> Adding to NULL is undefined,

Hmm okay. So really our `address` abstraction should be dealing with intptr_t or uintptr_t to perform any arithmetic and then cast the result back to an actual pointer type when done?

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

PR Comment: https://git.openjdk.org/jdk/pull/19597#issuecomment-2164252483


More information about the hotspot-runtime-dev mailing list