]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Use smaller sentries between allocations. Larger ones make "Growing memory
authorTimo Sirainen <tss@iki.fi>
Sun, 4 May 2008 16:38:11 +0000 (19:38 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 4 May 2008 16:38:11 +0000 (19:38 +0300)
pool" warnings pointless, because most of the space is wasted on sentries. A
smaller sentry will still catch most of the buffer overflows.

--HG--
branch : HEAD

src/lib/mempool-alloconly.c

index e8c11251637bad4e5c8a171f16d7d31a1c6f5835..0c44cb0dbe9e4c24d1c029ea9f0ef1177731faef 100644 (file)
@@ -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