diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-26 09:50:31 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-26 09:50:31 +0100 |
commit | 28a7756cb03e43a2e3a0f66acdca27225d509bb9 (patch) | |
tree | 9419e29e28601f8748ecfacf4463c5b095d286fb /src | |
parent | f3d09eddea1bc2f7a56db339a75cb66e61502c88 (diff) | |
download | rspamd-28a7756cb03e43a2e3a0f66acdca27225d509bb9.tar.gz rspamd-28a7756cb03e43a2e3a0f66acdca27225d509bb9.zip |
[Minor] Fix OOB read
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c index ec43404f9..1ea68dede 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -2235,7 +2235,7 @@ url_file_start (struct url_callback_data *cb, { match->m_begin = pos; - if (pos > cb->begin - 1) { + if (pos > cb->begin) { match->st = *(pos - 1); } else { |