[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ntp-bugs
Subject:    [ntp:bugs] [Bug 2762] New: ntpd doesn't always set delimiters when processing mrulist request.
From:       bugzilla-daemon () ntp ! org
Date:       2015-02-20 1:08:37
Message-ID: bug-2762-1197 () http ! bugs ! ntp ! org/
[Download RAW message or body]

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

             Bug #: 2762
           Summary: ntpd doesn't always set delimiters when processing
                    mrulist request.
           Product: ntp
           Version: 4.2.8
          Platform: PC
        OS/Version: Windows 7
            Status: CONFIRMED
          Severity: enhancement
          Priority: P5
         Component: ntpd
        AssignedTo: stenn@ntp.org
        ReportedBy: brian.utterback@oracle.com
                CC: bugs@ntp.org
    Classification: Unclassified


When processing mrulist requests, ntpd sends responses in groups of packets. It
sometimes doesn't insert the right delimiters when a packet boundary is
crossed.

For instance, capturing the processing of mrulist responses, I saw the
following:

end of packet "first.3=0xd8862f50.dda272a3", beginning of next packet
"ct.3=192,"

debug output processing this "nextvar gave: first.3 =
0xd8862f50.dda272a3ct.3=192"

later:
"first.27 = 0xd88907ac.caf2aa94"
"mv.27=35"
"nextvar gave: first.27 = 0xd88907ac.caf2aa94mv.27=35"

and

"rs.47 = 0x0\0"
"last.47=0xd890fab5.21010cd9"
"nextvar gave: rs.47 = 0x0last.47=0xd890fab5.21010cd9"

and

"first.50 = 0xd8862f82.39b5dc83\0"
"mv.51=35"
"nextvar gave: first.50 = 0xd8862f82.39b5dc83mv.51=35"

It happens over and over. Either there is no comma and the value goes to the
end of the packet, or there is a null but still no comma.

As result of these missing commas, the ntpq program gets very confused.

-- 
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.
_______________________________________________
bugs-announce mailing list
bugs-announce@lists.ntp.org
http://lists.ntp.org/listinfo/bugs-announce
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic