dovecot-1.2: mail_index_lookup_seq*() could have returned wrong ...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Aug 28 09:33:41 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/8ac8713b1386
changeset: 8115:8ac8713b1386
user: Timo Sirainen <tss at iki.fi>
date: Thu Aug 28 09:33:37 2008 +0300
description:
mail_index_lookup_seq*() could have returned wrong sequences with transaction views.
This caused assert-crashes in recent flag handling for mbox and maildir.
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-index/mail-index-transaction-view.c | 2 +-
diffs (14 lines):
diff -r 74153b8e63a6 -r 8ac8713b1386 src/lib-index/mail-index-transaction-view.c
--- a/src/lib-index/mail-index-transaction-view.c Wed Aug 27 19:21:12 2008 +0300
+++ b/src/lib-index/mail-index-transaction-view.c Thu Aug 28 09:33:37 2008 +0300
@@ -127,9 +127,9 @@ static void tview_lookup_seq_range(struc
if (*first_seq_r == 0) {
seq = tview->t->first_new_seq;
for (; seq <= tview->t->last_new_seq; seq++) {
+ rec = mail_index_transaction_lookup(tview->t, seq);
if (first_uid <= rec->uid)
break;
- rec = mail_index_transaction_lookup(tview->t, seq);
}
if (seq > tview->t->last_new_seq) {
/* no messages in range */
More information about the dovecot-cvs
mailing list