JDK-7123415 : Some cases of network interface indexes being read incorrectly
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: generic
  • Submitted: 2011-12-21
  • Updated: 2012-06-07
  • Resolved: 2012-06-07
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.

To download the current JDK release, click here.
JDK 8
8 b23Fixed
Related Reports
Relates :  
Description
In src/solaris/native/java/net/net_util_md.c, there are instances of the network interface index being read in by a "%02x".  These instances are on lines 616 and 1110 of net_util_md.c and they appear involve code that obtains the default loopback interface index and default ipv6 interface index.  It has been shown by CR 7078386 that the index value can be more than two digits.  Therefore, these instances should likely be changed to "%08x" as instructed in CR 7078386.

Comments
EVALUATION JDK8 changeset: Changeset: d72de8b3fe36 Author: chegar Date: 2012-01-10 10:57 +0000 URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/d72de8b3fe36 7123415: Some cases of network interface indexes being read incorrectly Reviewed-by: chegar Contributed-by: ###@###.### ! src/solaris/native/java/net/net_util_md.c
10-01-2012

EVALUATION The formatting option for reading the network interface index value should be changed to "%08x" as noted in the description.
21-12-2011