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

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 20 02:22:03 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/217fe26a3176
changeset: 14604:217fe26a3176
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 49607e4a97d4 -r 217fe26a3176 src/lib-mail/message-parser.c
--- a/src/lib-mail/message-parser.c	Wed Jun 20 01:45:55 2012 +0300
+++ b/src/lib-mail/message-parser.c	Wed Jun 20 02:21:54 2012 +0300
@@ -153,7 +153,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