mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-11-27 02:22:00 +08:00
Fix ITS#1963 buffer size check in string_expand()
This commit is contained in:
parent
fe336b15c5
commit
f3ae2b87e3
@ -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 New Issue
Block a user