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

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

XMLWordPrintable

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

      [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));

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

              Created:
              Updated:
              Resolved: