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

Potential overflow of pointer arithmetic in G1ArchiveAllocator

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 17
    • 17
    • hotspot
    • gc
    • b22

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: