This commit is contained in:
Howard Chu 2015-01-14 19:05:17 +00:00
parent 30ae5fa2cf
commit 869324ff9f

View File

@ -1826,7 +1826,7 @@ UTF8StringValidate(
if( LDAP_UTF8_OFFSET( (char *)u ) != len ) return LDAP_INVALID_SYNTAX; if( LDAP_UTF8_OFFSET( (char *)u ) != len ) return LDAP_INVALID_SYNTAX;
} }
if( u >= len ) { if( u > end ) {
return LDAP_INVALID_SYNTAX; return LDAP_INVALID_SYNTAX;
} }