Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8266787

Potential overflow of pointer arithmetic in G1ArchiveAllocator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 17
    • 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.

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

              Created:
              Updated:
              Resolved: