# HG changeset patch # User Timo Sirainen # Date 1302019711 -10800 # Node ID 699d181a5578923a2bb64ffd8591c51da42ba216 # Parent 64f354128f4e261f5a05dd4c1c9862f73a67a23a lib-index: Fix to previous check. diff -r 64f354128f4e -r 699d181a5578 src/lib-index/mail-index-map.c --- 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; }