-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P4
-
Affects Version/s: 12, 13
-
Component/s: hotspot
[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);
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);
- relates to
-
JDK-8217291 Failure of ::realloc() should be handled correctly in adlc/forms.cpp
-
- Resolved
-