diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-24 18:04:39 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-24 18:04:39 +0000 |
commit | 6b1f6fea999cc8477359a1677c64ccb00a4d09e7 (patch) | |
tree | 26a3412a3f9acca8a6385f7c458d15687b833c4e /src/libmime | |
parent | 4442c05a65fbba59822a99da0138409dc4351618 (diff) | |
download | rspamd-6b1f6fea999cc8477359a1677c64ccb00a4d09e7.tar.gz rspamd-6b1f6fea999cc8477359a1677c64ccb00a4d09e7.zip |
Allocate enough space for two bits per composite.
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/filter.c b/src/libmime/filter.c index 49b0ff5a8..b66a66fd1 100644 --- a/src/libmime/filter.c +++ b/src/libmime/filter.c @@ -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, |