Hello! I feel that the time has come to increase the size of the buffers for Pass and PassCmd. I currently get XOAUTH2 tokens from Microsoft on 1819 bytes, which becomes 2472 bytes when encoded.
Patch attached. -- hugo
>From cbb8fae3e0b9c609b48e74984fddb0c779c628cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= <h...@lysator.liu.se> Date: Thu, 16 Jul 2020 01:59:57 +0200 Subject: [PATCH] Increase pass and passcmd buffers. --- src/config.c | 2 +- src/drv_imap.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.c b/src/config.c index 8ddfe26..380aef5 100644 --- a/src/config.c +++ b/src/config.c @@ -321,7 +321,7 @@ load_config( const char *where, int pseudo ) char *arg, *p; int len, cops, gcops, max_size, ms, i; char path[_POSIX_PATH_MAX]; - char buf[1024]; + char buf[2048]; if (!where) { assert( !pseudo ); diff --git a/src/drv_imap.c b/src/drv_imap.c index 8d2ebf5..21c8595 100644 --- a/src/drv_imap.c +++ b/src/drv_imap.c @@ -1921,7 +1921,7 @@ ensure_password( imap_server_conf_t *srvc ) if (cmd) { FILE *fp; int ret; - char buffer[2048]; // Hopefully more than enough room for XOAUTH2, etc. tokens + char buffer[4096]; // Hopefully more than enough room for XOAUTH2, etc. tokens if (*cmd == '+') { flushn(); -- 2.27.0
_______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel