[ntp:bugs] [Bug 3058] New: fetch_timestamp fails to account for alignment.

bugzilla-daemon at ntp.org bugzilla-daemon at ntp.org
Tue May 24 13:32:09 UTC 2016


http://bugs.ntp.org/show_bug.cgi?id=3058

             Bug #: 3058
           Summary: fetch_timestamp fails to account for alignment.
           Product: ntp
           Version: 4.2.8
          Platform: Sun
        OS/Version: Solaris
            Status: CONFIRMED
          Severity: blocker
          Priority: P5
         Component: ntpd
        AssignedTo: stenn at ntp.org
        ReportedBy: brian.utterback at oracle.com
                CC: bugs at ntp.org
    Classification: Unclassified


Created attachment 1407
  --> http://bugs.ntp.org/attachment.cgi?id=1407
patch for SCM_TIMESTAMP case.

The fetch_timestamp function casts the value returned by CMSG_DATA to a pointer
to a timeval. Generally a timeval needs to aligned to LONG alignment but
CAMG_DATA is only guaranteed to be aligned to INT alignment. On LP64
architectures these are not the same.

I am including a patch to fix the case for SCM_TIMESTAMP. Similar things
probably should be done for the other timestamp types.

-- 
Configure bugmail: http://bugs.ntp.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the bugs-announce mailing list