From 0e1dba9a0aa72f6f27001a50552a8c67575da336 Mon Sep 17 00:00:00 2001 From: delphij Date: Fri, 22 Jan 2016 15:55:21 +0000 Subject: MFC r294554: MFV r294491: ntp 4.2.8p6. Security: CVE-2015-7973, CVE-2015-7974, CVE-2015-7975 Security: CVE-2015-7976, CVE-2015-7977, CVE-2015-7978 Security: CVE-2015-7979, CVE-2015-8138, CVE-2015-8139 Security: CVE-2015-8140, CVE-2015-8158 With hat: so --- contrib/ntp/ntpd/refclock_chu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/ntp/ntpd/refclock_chu.c') diff --git a/contrib/ntp/ntpd/refclock_chu.c b/contrib/ntp/ntpd/refclock_chu.c index 1f02a1c..d745c81 100644 --- a/contrib/ntp/ntpd/refclock_chu.c +++ b/contrib/ntp/ntpd/refclock_chu.c @@ -1264,7 +1264,7 @@ chu_a( offset = up->charstamp; else if (k > 0) i = 1; - for (; i < nchar && i < k + 10; i++) { + for (; i < nchar && (i - 10) < k; i++) { up->tstamp[up->ntstamp] = up->cstamp[i]; L_SUB(&up->tstamp[up->ntstamp], &offset); L_ADD(&offset, &up->charstamp); -- cgit v1.1