mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
security/openvpn-auth-ldap: Fix buffer overflow in C/R function
Bump PORTREVISION Security: e915b60e-ea25-11ef-a1c0-0050569f0b83
This commit is contained in:
parent
76087c45a0
commit
879092b342
2 changed files with 12 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
PORTNAME= openvpn-auth-ldap
|
||||
PORTVERSION= 2.0.4
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
DISTVERSIONPREFIX= auth-ldap-
|
||||
CATEGORIES= security net-vpn
|
||||
|
||||
|
|
11
security/openvpn-auth-ldap/files/patch-src_openvpn-cr.c
Normal file
11
security/openvpn-auth-ldap/files/patch-src_openvpn-cr.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/openvpn-cr.c.orig 2018-07-26 20:17:21 UTC
|
||||
+++ src/openvpn-cr.c
|
||||
@@ -29,7 +29,7 @@ int extract_openvpn_cr(const char *response, openvpn_r
|
||||
tokenIndexes[0] = response;
|
||||
int tokenCnt = 1;
|
||||
const char *p;
|
||||
- for (p = response; *p; ++p) {
|
||||
+ for (p = response; *p && tokenCnt < 15; ++p) {
|
||||
if (*p == ':')
|
||||
tokenIndexes[tokenCnt++] = p + 1;
|
||||
}
|
Loading…
Add table
Reference in a new issue