From: Howard Chu Date: Mon, 26 May 2014 18:08:14 +0000 (-0700) Subject: ITS#7859 fix to read 4096-character lines X-Git-Tag: OPENLDAP_REL_ENG_2_4_40~146 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=724422d0e9ba34143025f0123a4c253c2b40e2e1;p=openldap ITS#7859 fix to read 4096-character lines --- diff --git a/libraries/libldap/ldif.c b/libraries/libldap/ldif.c index dbdfc5c47a..c9cd59c082 100644 --- a/libraries/libldap/ldif.c +++ b/libraries/libldap/ldif.c @@ -818,7 +818,7 @@ ldif_read_record( char **bufp, /* ptr to malloced output buffer */ int *buflenp ) /* ptr to length of *bufp */ { - char line[LDIF_MAXLINE], *nbufp; + char line[LDIF_MAXLINE+2], *nbufp; ber_len_t lcur = 0, len; int last_ch = '\n', found_entry = 0, stop, top_comment = 0;