mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 06:59:54 -05:00
ITS#9935 slapd UTF8StringValidate: fix read past end of string
Harmless, length check at end of routine would have returned an error anyway.
This commit is contained in:
parent
04eded74fe
commit
3991a0d191
1 changed files with 2 additions and 0 deletions
|
|
@ -1823,6 +1823,8 @@ UTF8StringValidate(
|
|||
for( ; u < end; u += len ) {
|
||||
/* get the length indicated by the first byte */
|
||||
len = LDAP_UTF8_CHARLEN2( u, len );
|
||||
if ( u + len > end )
|
||||
return LDAP_INVALID_SYNTAX;
|
||||
|
||||
/* very basic checks */
|
||||
switch( len ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue