dovecot-1.2: message_parser_init_from_parts(): If parts were bro...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Aug 30 11:27:11 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/d95770cfd935
changeset: 8121:d95770cfd935
user: Timo Sirainen <tss at iki.fi>
date: Sat Aug 30 11:27:07 2008 +0300
description:
message_parser_init_from_parts(): If parts were broken, we may have assert-crashed.
diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
src/lib-mail/message-parser.c | 4 +++-
diffs (15 lines):
diff -r 3a1e0970d053 -r d95770cfd935 src/lib-mail/message-parser.c
--- a/src/lib-mail/message-parser.c Sat Aug 30 10:55:04 2008 +0300
+++ b/src/lib-mail/message-parser.c Sat Aug 30 11:27:07 2008 +0300
@@ -678,8 +678,10 @@ static int preparsed_parse_next_header(s
i_assert(ctx->skip == 0);
if (ctx->input->v_offset != ctx->part->physical_pos +
- ctx->part->header_size.physical_size)
+ ctx->part->header_size.physical_size) {
ctx->broken = TRUE;
+ return -1;
+ }
return 1;
}
More information about the dovecot-cvs
mailing list