Skip to content

Commit

Permalink
[Minor] Fix OOB read
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Sep 26, 2019
1 parent f3d09ed commit 28a7756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libserver/url.c
Expand Up @@ -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 {
Expand Down

0 comments on commit 28a7756

Please sign in to comment.