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

BitMap::reallocate should check if old_map is NULL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 10
    • hotspot
    • None
    • b31

      The method BitMap::reallocate should check if old_map equals NULL before calling Copy::disjoint_words. There is a case in Copy::disjoint_words that can result in call to memcpy, and it is undefined behavior to call memcpy with NULL parameters.

            ehelin Erik Helin
            ehelin Erik Helin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: