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:
Randy Kunkee 2000-07-19 01:29:44 +00:00
parent e967e1a963
commit c10c4d6957
2 changed files with 3 additions and 1 deletions

View file

@ -7,6 +7,8 @@ Changes included in OpenLDAP 1.2.12 Engineering
Fixed Pth initialization bug
Fixed libldap/add mod_bvalues typo
Fixed ldappasswd crypt(3) crash (ITD#598)
Fixed MAXARGS boundary condition crash in fp_parse_line in
servers/slapd/config.c
Build Environment
Remove extra Digital UNIX symbol (ITS#590)
Ignore make clean rm failure

View file

@ -39,7 +39,7 @@ read_config( char *fname, Backend **bep, FILE *pfp )
FILE *fp;
char *line, *savefname;
int cargc, savelineno;
char *cargv[MAXARGS];
char *cargv[MAXARGS+1];
int lineno, i;
Backend *be;