dovecot-2.0: mbox: istream_raw_mbox_get_body_size() no longer cr...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Feb 15 07:09:16 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/8f251e0bc02d
changeset: 10732:8f251e0bc02d
user: Timo Sirainen <tss at iki.fi>
date: Mon Feb 15 06:12:59 2010 +0200
description:
mbox: istream_raw_mbox_get_body_size() no longer crashes if header wasn't read.
diffstat:
src/lib-storage/index/mbox/istream-raw-mbox.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r a3ec94b25456 -r 8f251e0bc02d src/lib-storage/index/mbox/istream-raw-mbox.c
--- a/src/lib-storage/index/mbox/istream-raw-mbox.c Mon Feb 15 06:07:02 2010 +0200
+++ b/src/lib-storage/index/mbox/istream-raw-mbox.c Mon Feb 15 06:12:59 2010 +0200
@@ -569,8 +569,8 @@
i_assert(rstream->seeked);
i_assert(rstream->hdr_offset != (uoff_t)-1);
- i_assert(rstream->body_offset != (uoff_t)-1);
+ (void)istream_raw_mbox_get_body_offset(stream);
body_size = rstream->mail_size == (uoff_t)-1 ? (uoff_t)-1 :
rstream->mail_size - (rstream->body_offset -
rstream->hdr_offset);
More information about the dovecot-cvs
mailing list