dovecot-2.2: imapc: Fixed crash when saving/copying messages.
dovecot at dovecot.org
dovecot at dovecot.org
Sat Sep 22 19:22:11 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/c5926a27fa2d
changeset: 15092:c5926a27fa2d
user: Timo Sirainen <tss at iki.fi>
date: Sat Sep 22 19:21:58 2012 +0300
description:
imapc: Fixed crash when saving/copying messages.
diffstat:
src/lib-storage/index/imapc/imapc-save.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r a73f4d12289e -r c5926a27fa2d src/lib-storage/index/imapc/imapc-save.c
--- a/src/lib-storage/index/imapc/imapc-save.c Thu Sep 20 01:01:20 2012 +0300
+++ b/src/lib-storage/index/imapc/imapc-save.c Sat Sep 22 19:21:58 2012 +0300
@@ -126,7 +126,8 @@
return;
if (str_to_uint32(args[1], &dest_uid) == 0) {
- seq_range_array_add(&ctx->dest_saved_uids, dest_uid);
+ seq_range_array_add_with_init(&ctx->dest_saved_uids,
+ 32, dest_uid);
*uid_r = dest_uid;
}
}
@@ -343,7 +344,8 @@
return;
if (str_to_uint32(args[2], &dest_uid) == 0) {
- seq_range_array_add(&ctx->dest_saved_uids, dest_uid);
+ seq_range_array_add_with_init(&ctx->dest_saved_uids,
+ 32, dest_uid);
*uid_r = dest_uid;
}
}
More information about the dovecot-cvs
mailing list