mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 18:49:34 -05:00
disallow unescaped NULs in UTF-8 string values
This commit is contained in:
parent
63bdcda971
commit
32e48d9e4d
1 changed files with 3 additions and 0 deletions
|
|
@ -1386,6 +1386,9 @@ str2strval( const char *str, ber_len_t stoplen, struct berval *val, const char *
|
|||
return( 1 );
|
||||
|
||||
} else if (!LDAP_DN_ASCII_PRINTABLE( p[ 0 ] ) ) {
|
||||
if ( p[ 0 ] == '\0' ) {
|
||||
return( 1 );
|
||||
}
|
||||
*retFlags = LDAP_AVA_NONPRINTABLE;
|
||||
|
||||
} else if ( ( LDAP_DN_LDAP( flags ) && LDAP_DN_VALUE_END_V2( p[ 0 ] ) )
|
||||
|
|
|
|||
Loading…
Reference in a new issue