Skip to content

Commit

Permalink
[XrdXroot] Reset the buffer pointer after a non-aligned pgRead reques…
Browse files Browse the repository at this point in the history
…t to avoid heap-buffer-overflow corruptions Fixes #1743
  • Loading branch information
esindril committed Jul 19, 2022
1 parent dd1e712 commit 4dbd682
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/XrdXrootd/XrdXrootdXeqPgrw.cc
Expand Up @@ -323,6 +323,7 @@ int XrdXrootdProtocol::do_PgRIO()
if (pgOff)
{iov[2].iov_base = argp->buff;
iov[2].iov_len = pgPageSize;
buff = argp->buff;
pgOff = 0;
}

Expand Down

0 comments on commit 4dbd682

Please sign in to comment.