-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 12, 13
-
Component/s: core-libs
-
b04
-
generic
-
os_x
-
Not verified
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
|---|---|---|---|---|---|---|
| JDK-8235315 | 11.0.7-oracle | Ivan Gerasimov | P4 | Resolved | Fixed | b01 |
| JDK-8221152 | 11.0.4 | Matthias Baesken | P4 | Resolved | Fixed | b01 |
In NetworkInterface.c and Inet6AddressImpl.c we have some coding that omits checking for ifa_addr == NULL when iterating on the result of the getifaddrs call. This is similar to what has been fixed in hotspot with
https://bugs.openjdk.java.net/browse/JDK-8208676
The issues are in the bsd/macOS coding. However bsd/macOS also document that ifa_addr can be NULL in special cases (not sure how likely it is to see it "in the wild").
See
https://www.freebsd.org/cgi/man.cgi?getifaddrs
https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/getifaddrs.3.html
https://bugs.openjdk.java.net/browse/JDK-8208676
The issues are in the bsd/macOS coding. However bsd/macOS also document that ifa_addr can be NULL in special cases (not sure how likely it is to see it "in the wild").
See
https://www.freebsd.org/cgi/man.cgi?getifaddrs
https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/getifaddrs.3.html
- backported by
-
JDK-8221152 missing NULL checks in libnet in interface iteration and potential resource leak in getMacAddress
-
- Resolved
-
-
JDK-8235315 missing NULL checks in libnet in interface iteration and potential resource leak in getMacAddress
-
- Resolved
-