dovecot-1.2: message parser: Fixed infinite loop when parsing a ...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jun 20 02:24:48 EEST 2012
details: http://hg.dovecot.org/dovecot-1.2/rev/a56eb5db0d87
changeset: 9655:a56eb5db0d87
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 c80abc48d486 -r a56eb5db0d87 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
@@ -143,7 +143,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