diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-20 22:52:46 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-20 22:52:46 +0100 |
commit | fda6f95774fa3ca0508f3d08bc7cade26a2c5e35 (patch) | |
tree | 67305ea0f4c4daf501d3ff7bb6b3d06b8466d178 | |
parent | 8b724ff651736b296f96e35730989ac2710c66e1 (diff) | |
download | rspamd-fda6f95774fa3ca0508f3d08bc7cade26a2c5e35.tar.gz rspamd-fda6f95774fa3ca0508f3d08bc7cade26a2c5e35.zip |
Fix critical bug in tokenization logic.
-rw-r--r-- | src/libstat/tokenizers/tokenizers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstat/tokenizers/tokenizers.c b/src/libstat/tokenizers/tokenizers.c index 4b8f0cfb3..086b1719b 100644 --- a/src/libstat/tokenizers/tokenizers.c +++ b/src/libstat/tokenizers/tokenizers.c @@ -257,7 +257,7 @@ set_token: *rl = processed; } - token->len = p - *cur; + token->len = p - token->begin; g_assert (token->len > 0); *cur = p; |