]> git.sur5r.net Git - openldap/commitdiff
ITS#7859 fix to read 4096-character lines
authorHoward Chu <hyc@openldap.org>
Mon, 26 May 2014 18:08:14 +0000 (11:08 -0700)
committerHoward Chu <hyc@openldap.org>
Mon, 26 May 2014 18:08:14 +0000 (11:08 -0700)
libraries/libldap/ldif.c

index dbdfc5c47a7a2d9c5be7e62fbb4fec032cfddcd7..c9cd59c082ce8afaa9c54626d45604a7c206dc78 100644 (file)
@@ -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;