Mercurial > dovecot > core-2.2
changeset 22249:f65e7542dd4f
imap: NOTIFY - Fix potential crash when reading invalid parameters
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Sat, 17 Jun 2017 14:39:59 +0300 |
parents | df426d9ec0ae |
children | 81a74bce2b07 |
files | src/imap/cmd-notify.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/cmd-notify.c Sat Jun 17 14:38:22 2017 +0300 +++ b/src/imap/cmd-notify.c Sat Jun 17 14:39:59 2017 +0300 @@ -319,6 +319,8 @@ if (strcasecmp(filter_mailboxes, "subtree") == 0 || strcasecmp(filter_mailboxes, "mailboxes") == 0) { + if (event_group->type == IMAP_ARG_EOL) + return -1; mailboxes = event_group++; } else { mailboxes = NULL;