diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-09-20 18:10:01 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-09-20 18:10:01 -0400 |
commit | 9a927b63d0f76fb5edaf4abf43784419b944f21c (patch) | |
tree | 74c887b5d2ec54da1943672be135d6cbc280457e /tests/tests.h | |
parent | libsandbox: use memchr to speed up NUL byte search (diff) | |
download | sandbox-9a927b63d0f76fb5edaf4abf43784419b944f21c.tar.gz sandbox-9a927b63d0f76fb5edaf4abf43784419b944f21c.tar.bz2 sandbox-9a927b63d0f76fb5edaf4abf43784419b944f21c.zip |
libsandbox: fix process_vm_readv addresses/lengths
The current logic calculates the lengths/base addresses incorrectly
leading to some kernels/mappings to reject accesses. Make sure we
calculate the initial length properly, and then increment the base
by that value later on.
With those fixes in place, we can clean up the warning/exit paths.
URL: https://bugs.gentoo.org/560396
Reported-by: Jeroen Roovers <jer@gentoo.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tests/tests.h')
0 files changed, 0 insertions, 0 deletions