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

Failure of ::realloc() should be handled correctly in sawindbg.cpp

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 15
    • 12, 13
    • hotspot
    • None
    • b15
    • windows

    Description

      [Split out from JDK-8217291]

      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.

      jdk.hotspot.agent/windows/native/libsaproc/sawindbg.cpp: m_msgBuffer = (char*) realloc(m_msgBuffer, len + strlen(m_msgBuffer));

      Attachments

        Issue Links

          Activity

            People

              amenkov Alex Menkov
              thartmann Tobias Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: