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

Failure of ::realloc() should be handled correctly in adlc/forms.cpp

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 13
    • 10, 11, 12, 13
    • hotspot
    • b05

    Description

      In a few places of hotspot a possible failure of realloc isn't handled correctly: Either the return value isn't checked for NULL, of the original memory isn't freed, or both.

      http://mail.openjdk.java.net/pipermail/net-dev/2019-January/012055.html

      share/adlc/forms.cpp: if (_cur == _max) _names =(const char**)realloc(_names,(_max *=2)*sizeof(char*));

      Attachments

        Issue Links

          Activity

            People

              thartmann Tobias Hartmann
              igerasim Ivan Gerasimov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: