mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix MAXARGS boundary condition problem: slapd crashed if number of tokens
parsed == MAXARGS (only applicable if you have really large objectclasses).
This commit is contained in:
parent
836d089e74
commit
46ca9103b6
@ -48,7 +48,7 @@ read_config( const char *fname )
|
|||||||
FILE *fp;
|
FILE *fp;
|
||||||
char *line, *savefname, *saveline;
|
char *line, *savefname, *saveline;
|
||||||
int cargc, savelineno;
|
int cargc, savelineno;
|
||||||
char *cargv[MAXARGS];
|
char *cargv[MAXARGS+1];
|
||||||
int lineno, i;
|
int lineno, i;
|
||||||
#ifdef HAVE_TLS
|
#ifdef HAVE_TLS
|
||||||
int rc;
|
int rc;
|
||||||
|
Loading…
Reference in New Issue
Block a user