dovecot: We wanted to read too many bytes when finding end bound...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Jul 14 23:19:37 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/1a7f5c04af1d
changeset: 5989:1a7f5c04af1d
user: Timo Sirainen <tss at iki.fi>
date: Sat Jul 14 22:10:26 2007 +0300
description:
We wanted to read too many bytes when finding end boundary, which could have
broken the parser.
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-mail/message-parser.c | 2 +-
diffs (12 lines):
diff -r 42e56c396bfb -r 1a7f5c04af1d src/lib-mail/message-parser.c
--- a/src/lib-mail/message-parser.c Fri Jul 13 17:25:00 2007 +0300
+++ b/src/lib-mail/message-parser.c Sat Jul 14 22:10:26 2007 +0300
@@ -361,7 +361,7 @@ static int parse_next_body_to_boundary(s
ret = -1;
else {
ret = 0;
- ctx->want_count = i + 1;
+ ctx->want_count = (block_r->size - boundary_start) + 1;
}
}
i_assert(!(ret == 0 && full));
More information about the dovecot-cvs
mailing list