]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Fix ITS#1963 buffer size check in string_expand()
authorHoward Chu <hyc@openldap.org>
Mon, 26 Aug 2002 13:39:26 +0000 (13:39 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 26 Aug 2002 13:39:26 +0000 (13:39 +0000)
servers/slapd/acl.c

index c08c2a2eea2e02d3eff4b5d82d49e92b29c35d44..243e6861a1a617590ae245c1155fe1f1e862b022 100644 (file)
@@ -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++;
                                }