mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
Fix ITS#1963 buffer size check in string_expand()
This commit is contained in:
parent
fe336b15c5
commit
f3ae2b87e3
1 changed files with 1 additions and 1 deletions
|
|
@ -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++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue