aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-26 09:50:31 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-26 09:50:31 +0100
commit28a7756cb03e43a2e3a0f66acdca27225d509bb9 (patch)
tree9419e29e28601f8748ecfacf4463c5b095d286fb /src
parentf3d09eddea1bc2f7a56db339a75cb66e61502c88 (diff)
downloadrspamd-28a7756cb03e43a2e3a0f66acdca27225d509bb9.tar.gz
rspamd-28a7756cb03e43a2e3a0f66acdca27225d509bb9.zip
[Minor] Fix OOB read
Diffstat (limited to 'src')
-rw-r--r--src/libserver/url.c2
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 {