diff options
| author | Matthias Andree <mandree@FreeBSD.org> | 2026-07-01 20:01:15 +0000 |
|---|---|---|
| committer | Vladimir Druzenko <vvd@FreeBSD.org> | 2026-07-01 20:08:53 +0000 |
| commit | 7bcce8a1bb5c23d738b378619625289403dffe37 (patch) | |
| tree | e3e5a3c45362dea24161ed105518f0f56bfb0460 | |
| parent | c0bd8b0338bac9eaddf7faefa5ed2ca1c55a1f4b (diff) | |
| -rw-r--r-- | security/openvpn/Makefile | 5 | ||||
| -rw-r--r-- | security/openvpn/distinfo | 6 | ||||
| -rw-r--r-- | security/openvpn/files/patch-src_openvpn_buffer.c | 14 |
3 files changed, 19 insertions, 6 deletions
diff --git a/security/openvpn/Makefile b/security/openvpn/Makefile index b2a2690571c3..a4e7892bf6e7 100644 --- a/security/openvpn/Makefile +++ b/security/openvpn/Makefile @@ -1,10 +1,9 @@ PORTNAME= openvpn -DISTVERSION= 2.7.4 +DISTVERSION= 2.7.5 PORTREVISION?= 0 CATEGORIES= security net net-vpn MASTER_SITES= https://swupdate.openvpn.org/community/releases/ \ - https://build.openvpn.net/downloads/releases/ \ - LOCAL/mandree + https://build.openvpn.net/downloads/releases/ MAINTAINER= mandree@FreeBSD.org COMMENT?= Secure IP/Ethernet tunnel daemon diff --git a/security/openvpn/distinfo b/security/openvpn/distinfo index 08cc6a4d4ed6..da36120b22fb 100644 --- a/security/openvpn/distinfo +++ b/security/openvpn/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1777517989 -SHA256 (openvpn-2.7.4.tar.gz) = 18db05f3d5eee3663db1914590044e5f96ff5cd47b6e7846c6a350806c23dbce -SIZE (openvpn-2.7.4.tar.gz) = 2092050 +TIMESTAMP = 1782925053 +SHA256 (openvpn-2.7.5.tar.gz) = c6864b3c7d4e059c7d6ce22d1b5fa646c8b379a06af872eeb9792b6083a44ac4 +SIZE (openvpn-2.7.5.tar.gz) = 2101063 diff --git a/security/openvpn/files/patch-src_openvpn_buffer.c b/security/openvpn/files/patch-src_openvpn_buffer.c new file mode 100644 index 000000000000..df3c8c4cc488 --- /dev/null +++ b/security/openvpn/files/patch-src_openvpn_buffer.c @@ -0,0 +1,14 @@ +--- src/openvpn/buffer.c.orig 2026-07-01 08:17:40 UTC ++++ src/openvpn/buffer.c +@@ -1376,7 +1376,10 @@ buffer_read_from_file(const char *filename, struct gc_ + return ret; + } + +- const size_t size = file_stat.st_size; ++ /* for some systems, off_t is 63 bits wide + sign bit and size_t is 32 bits ++ * wide, and we need to avoid negative garbage wrapping around */ ++ ASSERT(file_stat.st_size >= 0 && file_stat.st_size <= SIZE_MAX); ++ const size_t size = (size_t)file_stat.st_size; + ret = alloc_buf_gc(size + 1, gc); /* space for trailing \0 */ + size_t read_size = fread(BPTR(&ret), 1, size, fp); + if (read_size == 0) |
