aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-09-20 18:10:01 -0400
committerMike Frysinger <vapier@gentoo.org>2015-09-20 18:10:01 -0400
commit9a927b63d0f76fb5edaf4abf43784419b944f21c (patch)
tree74c887b5d2ec54da1943672be135d6cbc280457e /localdecls.h
parentlibsandbox: use memchr to speed up NUL byte search (diff)
downloadsandbox-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 'localdecls.h')
0 files changed, 0 insertions, 0 deletions