dovecot-2.2: imap: Fixed assert-crash on invalid APPEND parameters.

dovecot at dovecot.org dovecot at dovecot.org
Mon May 6 19:51:28 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/0b7039a614f7
changeset: 16337:0b7039a614f7
user:      Timo Sirainen <tss at iki.fi>
date:      Mon May 06 19:49:55 2013 +0300
description:
imap: Fixed assert-crash on invalid APPEND parameters.

diffstat:

 src/imap/cmd-append.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (15 lines):

diff -r ea0390e1789f -r 0b7039a614f7 src/imap/cmd-append.c
--- a/src/imap/cmd-append.c	Mon May 06 19:49:18 2013 +0300
+++ b/src/imap/cmd-append.c	Mon May 06 19:49:55 2013 +0300
@@ -501,9 +501,8 @@
 		ctx->binary_input = args->literal8;
 		valid = TRUE;
 	}
-	/* we parsed the args only up to here. */
-	i_assert(IMAP_ARG_IS_EOL(&args[1]));
-
+	if (!IMAP_ARG_IS_EOL(&args[1]))
+		valid = FALSE;
 	if (!valid) {
 		client->input_skip_line = TRUE;
 		if (!ctx->failed)


More information about the dovecot-cvs mailing list