aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRyan Stone <rstone@FreeBSD.org>2020-01-07 16:03:11 +0000
committerRyan Stone <rstone@FreeBSD.org>2020-01-07 16:03:11 +0000
commit68faee11e868d70f5f79e58eeb1d5bfcc112c471 (patch)
tree1543c02615709e335e27fdccc7ac8a0e8fbd4805 /Makefile
parentf3e982e76418fc03f26d9b9cfc45872151c2328a (diff)
downloadsrc-68faee11e868d70f5f79e58eeb1d5bfcc112c471.tar.gz
src-68faee11e868d70f5f79e58eeb1d5bfcc112c471.zip
rtld: Fix segfault in direct exec mode
When rtld is directly executed with arguments, it has to move the program arguments, environment and elf aux data up a few slots to remove its own arguments before the process being executed sees them. When copying the environment, rtld was incorrectly testing whether the location about to be written to currently contained NULL, when was supposed to check whether it had just copied the NULL terminator of the environment string. This had the result that the ELF aux data was mostly treated as environment variables, and rtld would quickly crash when it tried to access required ELF aux data that it didn't think was present. Differential Revision: https://reviews.freebsd.org/D23008 Reviewed by: kib MFC after: 1 month
Notes
Notes: svn path=/head/; revision=356444
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions