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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10, 11, 12, 13
    • Fix Version/s: 13
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      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

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

                Dates

                Created:
                Updated:
                Resolved: