]> source.dussan.org Git - rspamd.git/commitdiff
Fix critical bug in tokenization logic.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 May 2015 21:52:46 +0000 (22:52 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 May 2015 21:52:46 +0000 (22:52 +0100)
src/libstat/tokenizers/tokenizers.c

index 4b8f0cfb392d7f25f5989846f011536286b069a1..086b1719b8d3e2d53dafd38f63dd306d7f2d3bb4 100644 (file)
@@ -257,7 +257,7 @@ set_token:
                *rl = processed;
        }
 
-       token->len = p - *cur;
+       token->len = p - token->begin;
        g_assert (token->len > 0);
        *cur = p;