changeset 5989:1a7f5c04af1d HEAD

We wanted to read too many bytes when finding end boundary, which could have broken the parser.
author Timo Sirainen <tss@iki.fi>
date Sat, 14 Jul 2007 22:10:26 +0300
parents 42e56c396bfb
children 14a0630a4fa9
files src/lib-mail/message-parser.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 			ret = -1;
 		else {
 			ret = 0;
-			ctx->want_count = i + 1;
+			ctx->want_count = (block_r->size - boundary_start) + 1;
 		}
 	}
 	i_assert(!(ret == 0 && full));