Mercurial > dovecot > core-2.2
changeset 18535:34b5abf6b9b7
mbox: Added an extra assert
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 07 May 2015 00:01:16 +0300 |
parents | 94bd895721d8 |
children | 5dc00179dd60 |
files | src/lib-storage/index/mbox/mbox-sync-rewrite.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-sync-rewrite.c Thu May 07 00:01:08 2015 +0300 +++ b/src/lib-storage/index/mbox/mbox-sync-rewrite.c Thu May 07 00:01:16 2015 +0300 @@ -435,6 +435,7 @@ if (first_nonexpunged && expunged_space > 0) { /* move From-line (after parsing headers so we don't overwrite them) */ + i_assert(mails[idx].from_offset >= expunged_space); if (mbox_move(sync_ctx, mails[idx].from_offset - expunged_space, mails[idx].from_offset, mails[idx].offset - mails[idx].from_offset) < 0)