diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-24 13:08:29 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-24 13:08:56 +0100 |
commit | 26eff813e8e951bc1470ed4667ecaabd0aa0588f (patch) | |
tree | 792e25374e931a08ea7c06991cae39248326b95f /src/libstat/tokenizers/tokenizers.h | |
parent | c52e22c7ce4a371076fe0f403144484a3be59ef2 (diff) | |
download | rspamd-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.h | 3 |
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, |