]> source.dussan.org Git - rspamd.git/commitdiff
Allocate enough space for two bits per composite.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Mar 2015 18:04:39 +0000 (18:04 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 Mar 2015 18:04:39 +0000 (18:04 +0000)
src/libmime/filter.c

index 49b0ff5a889ea0e1f852af1e239eaca6b1de6a37..b66a66fd1b76842133bde2feabf035610873a7d2 100644 (file)
@@ -599,7 +599,7 @@ composites_metric_callback (gpointer key, gpointer value, gpointer data)
        cd->symbols_to_remove = g_tree_new (remove_compare_data);
        cd->checked =
                rspamd_mempool_alloc0 (task->task_pool,
-                       NBYTES (g_hash_table_size (task->cfg->composite_symbols)));
+                       NBYTES (g_hash_table_size (task->cfg->composite_symbols) * 2));
 
        /* Process hash table */
        g_hash_table_foreach (task->cfg->composite_symbols,