Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7152948

(dc) DatagramDispatcher.c should memset msghdr to make it portable to other platforms

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 8
    • 7
    • core-libs
    • b32
    • x86
    • linux
    • Not verified

        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.

              chegar Chris Hegarty
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: