From: Vsevolod Stakhov Date: Thu, 26 Sep 2019 08:50:31 +0000 (+0100) Subject: [Minor] Fix OOB read X-Git-Tag: 2.0~122 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=28a7756cb03e43a2e3a0f66acdca27225d509bb9;p=rspamd.git [Minor] Fix OOB read --- 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 {