⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 5

📁 Unix/Linux 网络时间协议版本3 Network Time Protocol Version 3 (NTP) distribution for Unix systems
💻
字号:
From Nicholas_Briggs.PARC@xerox.com Sun Jun 16 03:33:29 1996X-NS-Transport-ID: 0000AA008EE70CC43566Date: Sun, 26 May 1996 18:05:20 PDTFrom: Nicholas_Briggs.PARC@xerox.comSubject: Re:  bug in ntpqIn-Reply-to: "Mills@huey.udel:edu:Xerox's message of Fri, 24 May 1996 18:16:33 PDT"To: Mills@huey.udel.educc: Nicholas_Briggs.PARC@xerox.com, Briggs.PARC@xerox.comIt's tock.usno.navy.mil that is provoking the problem -- the refid, you'llnotice below, is '"USN'.The bug is in nextvar, which assumes that it can parse "datalen" bytes, butdoesn't check for values that exceed the MAXVALLEN as it copies them into the"static char value[MAXVALLEN]" string.   As a result, it smashes memory, whichjust happens to show up as a SIGSEGV when the system "exit" tries to clean upthe open files.Who was it who said "Parsing is the Vietnam of Computer Science" ?					\nickcurrent host set to tock.usno.navy.milntpq> pe     remote           refid      st t when poll reach   delay   offset    disp==============================================================================Breakpoint 1, doprintpeers (pvl=0x12e84, associd=17388, rstatus=37908,datalen=608,    data=0x15900 "srcadr=127.127.16.0, srcport=123, dstadr=127.0.0.1,dstport=123,\r\nkeyid=0, stratum=0, precision=-21, rootdelay=0.00,rootdispersion=0.00,\r\nrefid=\"USN, reftime=0xb55362d5.010b1000, delay=0.00,offset=0"...,    fp=0x154ac) at ntpq_ops.c:1280current host set to tick.usno.navy.milntpq> pe     remote           refid      st t when poll reach   delay   offset    disp==============================================================================Breakpoint 1, doprintpeers (pvl=0x12e84, associd=11196, rstatus=37908,datalen=605,    data=0x15900 "srcadr=127.127.16.0, srcport=123, dstadr=127.0.0.1,dstport=123,\r\nkeyid=0, stratum=0, precision=-21, rootdelay=0.00,rootdispersion=0.00,\r\nrefid=, reftime=0xb5536347.bdf14000, delay=0.00,offset=-0.01"..., fp=0x154ac)    at ntpq_ops.c:1280					\nick

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -