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

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 20 02:24:31 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/4461b48fcc1f
changeset: 14566:4461b48fcc1f
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 4ce1f9649592 -r 4461b48fcc1f src/lib-mail/message-parser.c
--- a/src/lib-mail/message-parser.c	Mon Jun 18 17:05:27 2012 +0300
+++ b/src/lib-mail/message-parser.c	Wed Jun 20 02:21:54 2012 +0300
@@ -151,7 +151,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