openntpd: fix integer overflow on i686
This commit is contained in:
parent
348bebe43d
commit
64e827d718
12
srcpkgs/openntpd/patches/fix-time_t-overflow.patch
Normal file
12
srcpkgs/openntpd/patches/fix-time_t-overflow.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
--- a/src/constraint.c
|
||||||
|
+++ b/src/constraint.c
|
||||||
|
@@ -842,7 +842,7 @@ constraint_update(void)
|
||||||
|
/* calculate median */
|
||||||
|
i = cnt / 2;
|
||||||
|
if (cnt % 2 == 0)
|
||||||
|
- conf->constraint_median = (values[i - 1] + values[i]) / 2;
|
||||||
|
+ conf->constraint_median = ((long long)values[i - 1] + values[i]) / 2;
|
||||||
|
else
|
||||||
|
conf->constraint_median = values[i];
|
||||||
|
|
||||||
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
# Template file for 'openntpd'
|
# Template file for 'openntpd'
|
||||||
pkgname=openntpd
|
pkgname=openntpd
|
||||||
version=6.8p1
|
version=6.8p1
|
||||||
revision=4
|
revision=5
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-privsep-user=openntpd --with-cacert=/etc/ssl/certs.pem"
|
configure_args="--with-privsep-user=openntpd --with-cacert=/etc/ssl/certs.pem"
|
||||||
hostmakedepends="automake libtool"
|
hostmakedepends="automake libtool"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user