aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/tokenizers/tokenizers.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-24 13:08:29 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-24 13:08:56 +0100
commit26eff813e8e951bc1470ed4667ecaabd0aa0588f (patch)
tree792e25374e931a08ea7c06991cae39248326b95f /src/libstat/tokenizers/tokenizers.h
parentc52e22c7ce4a371076fe0f403144484a3be59ef2 (diff)
downloadrspamd-26eff813e8e951bc1470ed4667ecaabd0aa0588f.tar.gz
rspamd-26eff813e8e951bc1470ed4667ecaabd0aa0588f.zip
[Minor] Add safety check when using icu ubrk iterators
Diffstat (limited to 'src/libstat/tokenizers/tokenizers.h')
-rw-r--r--src/libstat/tokenizers/tokenizers.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstat/tokenizers/tokenizers.h b/src/libstat/tokenizers/tokenizers.h
index bf4987c7a..ca7261802 100644
--- a/src/libstat/tokenizers/tokenizers.h
+++ b/src/libstat/tokenizers/tokenizers.h
@@ -50,7 +50,8 @@ GArray *rspamd_tokenize_text (const gchar *text, gsize len,
struct rspamd_config *cfg,
GList *exceptions,
guint64 *hash,
- GArray *cur_words);
+ GArray *cur_words,
+ rspamd_mempool_t *pool);
/* OSB tokenize function */
gint rspamd_tokenizer_osb (struct rspamd_stat_ctx *ctx,