dovecot-1.1: message parser: Fixed infinite loop when parsing a ...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 20 02:25:30 EEST 2012


details:   http://hg.dovecot.org/dovecot-1.1/rev/0ce9c27b109b
changeset: 8377:0ce9c27b109b
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jun 20 02:21:54 2012 +0300
description:
message parser: Fixed infinite loop when parsing a specific message.

diffstat:

 src/lib-mail/message-parser.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r 0cae9ccf09b9 -r 0ce9c27b109b src/lib-mail/message-parser.c
--- a/src/lib-mail/message-parser.c	Sun Mar 04 14:12:19 2012 +0200
+++ b/src/lib-mail/message-parser.c	Wed Jun 20 02:21:54 2012 +0300
@@ -142,7 +142,10 @@
 		}
 	}
 
-	ctx->want_count = 1;
+	if (!*full_r) {
+		/* reset number of wanted characters if we actually got them */
+		ctx->want_count = 1;
+	}
 	return 1;
 }
 


More information about the dovecot-cvs mailing list