commit acbc9a124dcf12dcb85a187752a748192e30aa55 Author: Oswald Buddenhagen <o...@users.sf.net> Date: Fri Nov 22 17:49:04 2019 +0100
complain about malformed item names in FETCH responses src/drv_imap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/drv_imap.c b/src/drv_imap.c index ac66a91..2a7184b 100644 --- a/src/drv_imap.c +++ b/src/drv_imap.c @@ -1055,8 +1055,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)) { _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel