diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-09 11:01:50 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-09 11:01:50 +0100 |
commit | 989b808302248f1f8a51724984fdfa97925f5e21 (patch) | |
tree | 6a30f0d59111071d9a3fbb64f42d7dc167e42745 /src/libstat/tokenizers | |
parent | 53a6f9ec822d73a83e7d1221aec1cafac8d16585 (diff) | |
download | rspamd-989b808302248f1f8a51724984fdfa97925f5e21.tar.gz rspamd-989b808302248f1f8a51724984fdfa97925f5e21.zip |
[Minor] More strict boundaries checks and composites policies fix
Diffstat (limited to 'src/libstat/tokenizers')
-rw-r--r-- | src/libstat/tokenizers/tokenizers.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstat/tokenizers/tokenizers.c b/src/libstat/tokenizers/tokenizers.c index e165a4341..e9a9ce9b9 100644 --- a/src/libstat/tokenizers/tokenizers.c +++ b/src/libstat/tokenizers/tokenizers.c @@ -304,8 +304,10 @@ rspamd_tokenize_text (gchar *text, gsize len, gboolean is_utf, buf.begin = text; buf.len = len; + buf.flags = 0; token.begin = NULL; token.len = 0; + token.flags = 0; if (compat || !is_utf) { func = rspamd_tokenizer_get_word_compat; |