From: Howard Chu Date: Mon, 26 Aug 2002 13:39:26 +0000 (+0000) Subject: Fix ITS#1963 buffer size check in string_expand() X-Git-Tag: OPENLDAP_REL_ENG_2_0_26~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3ae2b87e3f8d8a8fa063ad8529e2f009a6c0d5a;p=thirdparty%2Fopenldap.git Fix ITS#1963 buffer size check in string_expand() --- diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index c08c2a2eea..243e6861a1 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -1541,7 +1541,7 @@ string_expand( *dp = '\0'; i = matches[n].rm_so; l = matches[n].rm_eo; - for ( ; size < 512 && i < l; size++, i++ ) { + for ( ; size < bufsiz && i < l; size++, i++ ) { *dp++ = match[i]; size++; }