mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 09:39:45 -05:00
detect braindead entries (e.g. from back-perl, ITS#4845,ITS#4852)
This commit is contained in:
parent
4ae77ae266
commit
2271fb4636
1 changed files with 5 additions and 0 deletions
|
|
@ -166,6 +166,11 @@ str2entry2( char *s, int checkvals )
|
|||
break;
|
||||
}
|
||||
i++;
|
||||
if (i >= lines) {
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"<= str2entry ran past end of entry\n", 0, 0, 0 );
|
||||
goto fail;
|
||||
}
|
||||
|
||||
rc = ldif_parse_line2( s, type+i, vals+i, &freev );
|
||||
freeval[i] = freev;
|
||||
|
|
|
|||
Loading…
Reference in a new issue