Skip to content

Commit

Permalink
8332818: ubsan: archiveHeapLoader.cpp:70:27: runtime error: applying …
Browse files Browse the repository at this point in the history
…non-zero offset 18446744073707454464 to null pointer

Backport-of: 6861766b638c5135ba40f261d78d9731954ce5ab
  • Loading branch information
luwang1103 authored and RealCLanger committed Jul 18, 2024
1 parent 021e881 commit 9176fa2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hotspot/share/cds/archiveHeapLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ ptrdiff_t ArchiveHeapLoader::_mapped_heap_delta = 0;

// Every mapped region is offset by _mapped_heap_delta from its requested address.
// See FileMapInfo::heap_region_requested_address().
#if defined(__clang__) || defined(__GNUC__)
__attribute__((no_sanitize("undefined")))
#endif
void ArchiveHeapLoader::init_mapped_heap_relocation(ptrdiff_t delta, int dumptime_oop_shift) {
assert(!_mapped_heap_relocation_initialized, "only once");
if (!UseCompressedOops) {
Expand Down

1 comment on commit 9176fa2

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.