dovecot-1.1: Use smaller sentries between allocations. Larger on...

dovecot at dovecot.org dovecot at dovecot.org
Sun May 4 19:39:08 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/96f724a4a1a0
changeset: 7484:96f724a4a1a0
user:      Timo Sirainen <tss at iki.fi>
date:      Sun May 04 19:38:11 2008 +0300
description:
Use smaller sentries between allocations. Larger ones make "Growing memory
pool" warnings pointless, because most of the space is wasted on sentries. A
smaller sentry will still catch most of the buffer overflows.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib/mempool-alloconly.c |    2 +-

diffs (12 lines):

diff -r 591145eaaf87 -r 96f724a4a1a0 src/lib/mempool-alloconly.c
--- a/src/lib/mempool-alloconly.c	Sun May 04 19:19:23 2008 +0300
+++ b/src/lib/mempool-alloconly.c	Sun May 04 19:38:11 2008 +0300
@@ -46,7 +46,7 @@ struct pool_block {
 
 #ifdef DEBUG
 #  define CLEAR_CHR 0xde
-#  define SENTRY_COUNT (4*8)
+#  define SENTRY_COUNT 8
 #else
 #  define CLEAR_CHR 0
 #endif


More information about the dovecot-cvs mailing list