diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-07 09:44:58 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-07 09:45:16 +0100 |
commit | 545e090c81ce22bbb7edb6d3621c348bd994449c (patch) | |
tree | da40261b3a037e705d49b58b386b899e30c19fe4 /src/libstat | |
parent | c207930dc64a680cc9a1ae9075e66f9d963e32e4 (diff) | |
download | rspamd-545e090c81ce22bbb7edb6d3621c348bd994449c.tar.gz rspamd-545e090c81ce22bbb7edb6d3621c348bd994449c.zip |
[Minor] Fix some more suspicious cases
Diffstat (limited to 'src/libstat')
-rw-r--r-- | src/libstat/tokenizers/tokenizers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstat/tokenizers/tokenizers.c b/src/libstat/tokenizers/tokenizers.c index caa4a48a5..b6061ce3b 100644 --- a/src/libstat/tokenizers/tokenizers.c +++ b/src/libstat/tokenizers/tokenizers.c @@ -217,10 +217,10 @@ rspamd_tokenize_check_limit (gboolean decay, } static inline gboolean -rspamd_utf_word_valid (const gchar *text, const gchar *end, +rspamd_utf_word_valid (const guchar *text, const guchar *end, gint32 start, gint32 finish) { - const gchar *st = text + start, *fin = text + finish; + const guchar *st = text + start, *fin = text + finish; UChar32 c; if (st >= end || fin > end || st >= fin) { |