mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 14:43:52 +02:00
openntpd: fix integer overflow on i686
This commit is contained in:
parent
348bebe43d
commit
64e827d718
2 changed files with 13 additions and 1 deletions
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'
|
||||
pkgname=openntpd
|
||||
version=6.8p1
|
||||
revision=4
|
||||
revision=5
|
||||
build_style=gnu-configure
|
||||
configure_args="--with-privsep-user=openntpd --with-cacert=/etc/ssl/certs.pem"
|
||||
hostmakedepends="automake libtool"
|
||||
|
|
Loading…
Add table
Reference in a new issue