dovecot-1.2: SORT: Fixed assert-crash.

dovecot at dovecot.org dovecot at dovecot.org
Sun Jul 20 17:43:12 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/2621f6f10c2e
changeset: 8018:2621f6f10c2e
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Jul 20 17:42:57 2008 +0300
description:
SORT: Fixed assert-crash.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/index/index-sort-string.c |    2 +-

diffs (12 lines):

diff -r 4a80a7ec7c6a -r 2621f6f10c2e src/lib-storage/index/index-sort-string.c
--- a/src/lib-storage/index/index-sort-string.c	Sun Jul 20 16:49:11 2008 +0300
+++ b/src/lib-storage/index/index-sort-string.c	Sun Jul 20 17:42:57 2008 +0300
@@ -534,7 +534,7 @@ index_sort_add_ids_range(struct sort_str
 			i_assert(right_idx == rightmost_idx);
 			right_sort_id = (uint32_t)-1;
 		}
-		i_assert(left_sort_id < right_sort_id);
+		i_assert(left_sort_id <= right_sort_id);
 
 		if (diff == right_sort_id - left_sort_id) {
 			/* we did nothing, but there's still not enough space.


More information about the dovecot-cvs mailing list