From f7cec3064d0563cf38940cb3662d938000a06442 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sun, 9 Sep 2018 13:35:05 +0200 Subject: [PATCH] bump IMAP command buffer size to 4KiB while only 1KiB is required by the IMAP spec, AUTHENTICATE GSSAPI with Kerberos requires about 1700 bytes. accomodate that, plus some reserve. fix suggested by Tollef Fog Heen via Debian BTS. --- src/drv_imap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drv_imap.c b/src/drv_imap.c index d76328e..06414e2 100644 --- a/src/drv_imap.c +++ b/src/drv_imap.c @@ -287,7 +287,7 @@ send_imap_cmd( imap_store_t *ctx, imap_cmd_t *cmd ) int bufl, litplus, iovcnt = 1; const char *buffmt; conn_iovec_t iov[3]; - char buf[1024]; + char buf[4096]; cmd->tag = ++ctx->nexttag; if (!cmd->param.data) { @@ -444,7 +444,7 @@ imap_vprintf( const char *fmt, va_list ap ) char *d, *ed; int maxlen; char c; - char buf[1024]; /* Minimal supported command buffer size per IMAP spec. */ + char buf[4096]; d = buf; ed = d + sizeof(buf);