dovecot-2.0: message parser: Fixed infinite loop when parsing a ...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jun 20 02:24:24 EEST 2012
details: http://hg.dovecot.org/dovecot-2.0/rev/7720fb368e40
changeset: 13102:7720fb368e40
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 066c1acd272b -r 7720fb368e40 src/lib-mail/message-parser.c
--- a/src/lib-mail/message-parser.c Tue Jun 12 00:04:01 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