isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit 8acf56b3113f6b6a31bf841edfb2fe36c6206026
parent 47b477b3fb67f285b36e034a79d9e174bdf96ab3
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Fri, 22 Nov 2019 17:49:04 +0100

complain about malformed item names in FETCH responses

Diffstat:
Msrc/drv_imap.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/drv_imap.c b/src/drv_imap.c @@ -1056,8 +1056,10 @@ parse_fetch_rsp( imap_store_t *ctx, list_t *list, char *s ATTR_UNUSED ) } for (tmp = list->child; tmp; tmp = tmp->next) { - if (!is_atom( tmp )) - continue; + if (!is_atom( tmp )) { + error( "IMAP error: bogus item name in FETCH response\n" ); + goto ffail; + } if (!strcmp( "UID", tmp->val )) { tmp = tmp->next; if (!is_atom( tmp ) || (uid = strtoul( tmp->val, &ep, 10 ), *ep)) {