[dovecot-cvs] dovecot/src/lib-index mail-index-sync-update.c, 1.96.2.11, 1.96.2.12
tss at dovecot.org
tss at dovecot.org
Tue Feb 6 14:58:05 UTC 2007
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv28162
Modified Files:
Tag: branch_1_0
mail-index-sync-update.c
Log Message:
If extension size wasn't 32bit aligned, we broke when syncing it. However
all the current extensions are 32bit aligned.
Index: mail-index-sync-update.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-sync-update.c,v
retrieving revision 1.96.2.11
retrieving revision 1.96.2.12
diff -u -d -r1.96.2.11 -r1.96.2.12
--- mail-index-sync-update.c 1 Feb 2007 21:08:08 -0000 1.96.2.11
+++ mail-index-sync-update.c 6 Feb 2007 14:58:03 -0000 1.96.2.12
@@ -672,7 +672,8 @@
}
ext = array_idx(&ctx->view->map->extensions, ctx->cur_ext_id);
- record_size = sizeof(*rec) + ext->record_size;
+ /* the record is padded to 32bits in the transaction log */
+ record_size = (sizeof(*rec) + ext->record_size + 3) & ~3;
rec = data;
end = CONST_PTR_OFFSET(data, hdr->size);
More information about the dovecot-cvs
mailing list