BitMap::reallocate should check if old_map is NULL

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 10
    • Affects Version/s: 10
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: