diff options
author | delphij <delphij@FreeBSD.org> | 2016-12-22 16:19:05 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2016-12-22 16:19:05 +0000 |
commit | 570e4ab90f4cd78ac7fef92fbb56aab29321dc2c (patch) | |
tree | cf1cd029c639825e80d40c5da7f0aa2e0d932883 /contrib/ntp/ntpd/refclock_jjy.c | |
parent | 96b7b5bc05779ba1bdc5a939d6146b1f8883bd92 (diff) | |
download | FreeBSD-src-570e4ab90f4cd78ac7fef92fbb56aab29321dc2c.zip FreeBSD-src-570e4ab90f4cd78ac7fef92fbb56aab29321dc2c.tar.gz |
Fix multiple vulnerabilities of ntp.
Approved by: so
Diffstat (limited to 'contrib/ntp/ntpd/refclock_jjy.c')
-rw-r--r-- | contrib/ntp/ntpd/refclock_jjy.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/ntp/ntpd/refclock_jjy.c b/contrib/ntp/ntpd/refclock_jjy.c index fc51fd9..f53150f 100644 --- a/contrib/ntp/ntpd/refclock_jjy.c +++ b/contrib/ntp/ntpd/refclock_jjy.c @@ -106,6 +106,10 @@ /* 2015/05/15 */ /* [Add] Support the SEIKO TIME SYSTEMS TDC-300 */ /* */ +/* 2016/05/08 */ +/* [Fix] C-DEX JST2000 */ +/* Thanks to Mr. Kuramatsu for the report and the patch. */ +/* */ /**********************************************************************/ #ifdef HAVE_CONFIG_H @@ -1499,9 +1503,9 @@ jjy_receive_cdex_jst2000 ( struct recvbuf *rbufp ) return JJY_RECEIVE_ERROR ; } - /* JYYMMDD HHMMSSS */ + /* JYYMMDDWHHMMSSS */ - rc = sscanf ( pBuf, "J%2d%2d%2d %2d%2d%2d%1d", + rc = sscanf ( pBuf, "J%2d%2d%2d%*1d%2d%2d%2d%1d", &up->year, &up->month, &up->day, &up->hour, &up->minute, &up->second, &up->msecond ) ; |