dovecot-2.0: lib-index: Fix to previous check.

dovecot at dovecot.org dovecot at dovecot.org
Tue Apr 5 19:08:39 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/699d181a5578
changeset: 12717:699d181a5578
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Apr 05 19:08:31 2011 +0300
description:
lib-index: Fix to previous check.

diffstat:

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

diffs (12 lines):

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;
 	}


More information about the dovecot-cvs mailing list