changeset 12924:699d181a5578

lib-index: Fix to previous check.
author Timo Sirainen <tss@iki.fi>
date Tue, 05 Apr 2011 19:08:31 +0300
parents 64f354128f4e
children 654b5a2fc926
files src/lib-index/mail-index-map.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index-map.c	Tue Apr 05 19:07:01 2011 +0300
+++ b/src/lib-index/mail-index-map.c	Tue Apr 05 19:08:31 2011 +0300
@@ -169,7 +169,7 @@
 	}
 	/* a large record size is most likely a bug somewhere. the maximum
 	   record size is limited to 64k anyway, so try to fail earlier. */
-	if (ext_hdr->record_size > sizeof(uint16_t)/2) {
+	if (ext_hdr->record_size >= 32768) {
 		*error_r = "Record size is too large";
 		return -1;
 	}