dovecot-2.2: lib-index: Removed obsolete 16bit size check assert...

dovecot at dovecot.org dovecot at dovecot.org
Fri Apr 5 00:13:33 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/87d0c4056b4d
changeset: 16185:87d0c4056b4d
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Mar 27 12:51:02 2013 +0200
description:
lib-index: Removed obsolete 16bit size check asserts from mail_index_update_header_ext()

diffstat:

 src/lib-index/mail-index-transaction-update.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r 8cc28a5a3f4f -r 87d0c4056b4d src/lib-index/mail-index-transaction-update.c
--- a/src/lib-index/mail-index-transaction-update.c	Mon Mar 25 16:19:54 2013 +0200
+++ b/src/lib-index/mail-index-transaction-update.c	Wed Mar 27 12:51:02 2013 +0200
@@ -871,8 +871,8 @@
 	struct mail_index_transaction_ext_hdr_update *hdr;
 	size_t new_size;
 
-	i_assert(offset <= (uint16_t)-1 && size <= (uint16_t)-1 &&
-		 offset + size <= (uint16_t)-1);
+	i_assert(offset <= (uint32_t)-1 && size <= (uint32_t)-1 &&
+		 offset + size <= (uint32_t)-1);
 
 	if (!array_is_created(&t->ext_hdr_updates))
 		i_array_init(&t->ext_hdr_updates, ext_id + 2);


More information about the dovecot-cvs mailing list