llvm-project/compiler-rt/lib
Kuba Brecka bb39671516 [compiler-rt] Make MaybeReexec properly process DYLD_INSERT_LIBRARIES when using non-absolute paths
MaybeReexec() in asan_mac.cc checks for presence of the ASan dylib in DYLD_INSERT_LIBRARIES, and if it is there, it will process this env. var. and remove the dylib from its value, so that spawned children don't have this variable set. However, the current implementation only works when using a canonical absolute path to the dylib, it fails to remove the dylib for example when using @executable_path.

This patch changes the processing of DYLD_INSERT_LIBRARIES to comparing values only based on filenames (ignoring directories).

Reviewed at http://reviews.llvm.org/D7160

llvm-svn: 228392
2015-02-06 12:07:29 +00:00
..
BlocksRuntime Move tests for BlocksRuntime and builtins to corresponding directories under test/ 2014-02-14 09:47:31 +00:00
asan [compiler-rt] Make MaybeReexec properly process DYLD_INSERT_LIBRARIES when using non-absolute paths 2015-02-06 12:07:29 +00:00
builtins Remove invalid const qualifier for r0, since it is written by svc. 2015-02-03 01:35:39 +00:00
dfsan [Sanitizers] Introduce GET_LINK_MAP_BY_DLOPEN_HANDLE() macro 2015-01-30 12:43:52 +00:00
interception [sanitizer] Android build cleanup. 2014-09-29 13:18:55 +00:00
lsan [msan] Better use-after-free reports. 2015-01-22 13:33:16 +00:00
msan [Msan] Fix the pthread_attr_get unit test to build on FreeBSD 2015-02-04 09:08:00 +00:00
profile InstrProf: Optionally print an error when emitting profile data fails 2015-01-16 20:10:56 +00:00
sanitizer_common [compiler-rt] Make MaybeReexec properly process DYLD_INSERT_LIBRARIES when using non-absolute paths 2015-02-06 12:07:29 +00:00
tsan [ASan] Add use_madv_dontdump flag. 2015-02-03 10:15:15 +00:00
ubsan [UBSan] Enable -Wglobal-constructors. 2015-02-06 05:53:08 +00:00
CMakeLists.txt [msan] Remove MSanDR and supporting code. 2014-11-18 10:33:15 +00:00
Makefile.mk Move original compiler-rt functions (libgcc replacement) to lib/builtins directory 2014-02-14 09:20:33 +00:00