United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7152948 (dc) DatagramDispatcher.c should memset msghdr to make it portable to other platforms
JDK-7152948 : (dc) DatagramDispatcher.c should memset msghdr to make it portable to other platforms

Details
Type:
Enhancement
Submit Date:
2012-03-12
Status:
Closed
Updated Date:
2012-10-29
Project Name:
JDK
Resolved Date:
2012-05-13
Component:
core-libs
OS:
linux
Sub-Component:
java.nio
CPU:
x86
Priority:
P5
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Backport:

Sub Tasks

Description
FULL PRODUCT VERSION :


ADDITIONAL OS VERSION INFORMATION :
AIX HY-AIX64 1 7 000562E4D700

A DESCRIPTION OF THE PROBLEM :
In src/solaris/native/sun/nio/ch/DatagramDispatcher.c,
Java_sun_nio_ch_DatagramDispatcher_readv0 will invoke recvmsg(int socket, const struct msghdr *message, int flags) system call and Java_sun_nio_ch_DatagramDispatcher_writev0 will invoke sendmsg(int socket, const struct msghdr *message, int flags) system call. The msghdr structure differs from Solaris and other platform and it can be initialized on all platforms with setting 0 in this structure.


REPRODUCIBILITY :
This bug can be reproduced always.

                                    

Comments
EVALUATION

Changeset: 68efc74309f9
Author:    chegar
Date:      2012-03-14 15:14 +0000
URL:       http://hg.openjdk.java.net/jdk8/tl/jdk/rev/68efc74309f9

7152948: DatagramDispatcher.c should memset msghdr to make it portable to other platforms
Reviewed-by: alanb, chegar
Contributed-by: Shi Jun Zhang <###@###.###>

! src/solaris/native/sun/nio/ch/DatagramDispatcher.c
                                     
2012-03-14



Hardware and Software, Engineered to Work Together