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

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

    XMLWordPrintable

Details

    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.

      os/aix/loadlib_aix.cpp: buffer = (uint8_t*) ::realloc(buffer, buflen);
      os/aix/loadlib_aix.cpp: char** l2 = (char**) ::realloc(_list, sizeof(char*) * cap2);

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              thartmann Tobias Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: