JDK-7114558 : Inet4AddressImpl should use memset (rather than bzero) and NI_MAXHOST (rather than MAXHOSTNAMELEN).
Type:Bug
Component:core-libs
Sub-Component:java.net
Affected Version:7
Priority:P4
Status:Closed
Resolution:Fixed
OS:generic
CPU:generic
Submitted:2011-11-22
Updated:2012-06-18
Resolved:2012-06-18
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
This is a follow up to CR 7112670, and adds forgotten review comment.
More specifically:
- memset rather than bzero
- NI_MAXHOST rather than MAXHOSTNAMELEN
- remove unused sockaddr_in6
Comments
EVALUATION
JDK8 changeset:
Changeset: ee2fa62fb09f
Author: ngmr
Date: 2011-11-22 09:51 +0000
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/ee2fa62fb09f
7114558: Inet4AddressImpl should use memset (rather than bzero) and NI_MAXHOST (rather than MAXHOSTNAMELEN)
Reviewed-by: chegar
Contributed-by: Neil Richards <###@###.###>
! src/solaris/native/java/net/Inet4AddressImpl.c
! src/solaris/native/java/net/Inet6AddressImpl.c