Potential overflow of pointer arithmetic in G1ArchiveAllocator

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 17
    • Affects Version/s: 17
    • Component/s: hotspot
    • gc
    • b22

      In `G1ArchiveAllocator::archive_mem_allocate`, the addition, `HeapWord* new_top = old_top + word_size;`, could overflow. Should use `pointer_delta` to check if there's enough space left firstly.

            Assignee:
            Albert Yang
            Reporter:
            Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: