dovecot-2.0: lib-imap: imap_parser_finish_line() didn't return f...

dovecot at dovecot.org dovecot at dovecot.org
Fri Mar 4 18:32:12 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/3f21260a72ce
changeset: 12641:3f21260a72ce
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Mar 04 18:31:02 2011 +0200
description:
lib-imap: imap_parser_finish_line() didn't return failure on invalid input.

diffstat:

 src/lib-imap/imap-parser.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 1ffeb083c993 -r 3f21260a72ce src/lib-imap/imap-parser.c
--- a/src/lib-imap/imap-parser.c	Fri Mar 04 18:19:56 2011 +0200
+++ b/src/lib-imap/imap-parser.c	Fri Mar 04 18:31:02 2011 +0200
@@ -687,6 +687,8 @@
 	int ret;
 
 	ret = imap_parser_read_args(parser, count, flags, args_r);
+	if (ret == -1)
+		return -1;
 	if (ret == -2) {
 		/* we should have noticed end of everything except atom */
 		if (parser->cur_type == ARG_PARSE_ATOM) {


More information about the dovecot-cvs mailing list