llvm-project/compiler-rt/lib/sanitizer_common
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
..
scripts [sanitizer] Fix bashism in check_lint.sh. 2015-01-16 10:20:49 +00:00
tests Revert "Remove unused function." 2015-01-31 01:27:18 +00:00
CMakeLists.txt [sanitizer] Flag parser rewrite. 2015-01-15 15:13:43 +00:00
Makefile.mk
sanitizer_addrhashmap.h Fix typos 2014-05-15 02:22:34 +00:00
sanitizer_allocator.cc [Sanitizer] Introduce Allocator::may_return_null bool flag. 2014-12-12 20:07:35 +00:00
sanitizer_allocator.h [sanitizer] use the right memory order 2015-01-09 21:01:34 +00:00
sanitizer_allocator_interface.h Generalize sanitizer allocator public interface. 2014-07-07 17:39:31 +00:00
sanitizer_allocator_internal.h [sanitizer] Flag parser rewrite. 2015-01-15 15:13:43 +00:00
sanitizer_asm.h [sanitizer] support toolchains that don't understand CFI directives 2013-12-05 07:44:35 +00:00
sanitizer_atomic.h asan: fix atomic operations on ARM 2014-01-22 14:13:37 +00:00
sanitizer_atomic_clang.h asan: fix atomic operations on ARM 2014-01-22 14:13:37 +00:00
sanitizer_atomic_clang_other.h [sanitizer] fix for ARM Linux, patch by Maxim Ostapenko 2014-05-13 08:01:59 +00:00
sanitizer_atomic_clang_x86.h asan: fix atomic operations on ARM 2014-01-22 14:13:37 +00:00
sanitizer_atomic_msvc.h [ASan/Win] Unbreak the build after r211216 2014-07-07 16:22:04 +00:00
sanitizer_bitvector.h Fix MSVS warnings in the sanitizers RTL 2014-03-12 14:09:25 +00:00
sanitizer_bvgraph.h [sanitizer] speed up the bitvector-based deadlock detector by ~15% (iterate over the currently held locks using the array, not the bitvector. Bitvector is not the best data structure to iterate over) 2014-03-31 07:23:50 +00:00
sanitizer_common.cc [asan] Allow changing verbosity in activation flags. 2015-01-20 13:21:20 +00:00
sanitizer_common.h [ASan] Add use_madv_dontdump flag. 2015-02-03 10:15:15 +00:00
sanitizer_common_interceptors.inc [Sanitizers] Introduce GET_LINK_MAP_BY_DLOPEN_HANDLE() macro 2015-01-30 12:43:52 +00:00
sanitizer_common_interceptors_format.inc [ubsan] handle long double in 32-bit mode; part of the patch by Marek Polacek 2014-05-23 14:45:13 +00:00
sanitizer_common_interceptors_ioctl.inc Update bogus file permissions. 2014-12-08 23:28:07 +00:00
sanitizer_common_libcdep.cc [asan] Allow changing verbosity in activation flags. 2015-01-20 13:21:20 +00:00
sanitizer_common_syscalls.inc [msan] Fix wrong array index in io_submit interceptor. 2014-09-08 09:28:25 +00:00
sanitizer_coverage_libcdep.cc [sanitizer] add another workaround for PR 17409: when over a threshold emit coverage instrumentation as calls. 2015-02-04 01:21:45 +00:00
sanitizer_coverage_mapping_libcdep.cc Fix memory leaks in GetListOfModules() users. 2015-01-08 22:31:14 +00:00
sanitizer_deadlock_detector.h tsan: fix deadlock reporting 2014-12-18 14:05:34 +00:00
sanitizer_deadlock_detector1.cc [sanitizer] print threads in deadlock report 2014-03-21 13:00:18 +00:00
sanitizer_deadlock_detector2.cc tsan: remove unnecessary line split 2014-07-08 13:07:23 +00:00
sanitizer_deadlock_detector_interface.h [sanitizer] print threads in deadlock report 2014-03-21 13:00:18 +00:00
sanitizer_flag_parser.cc [sanitizer] Make unrecognized flags not fatal. 2015-01-19 12:22:57 +00:00
sanitizer_flag_parser.h [sanitizer] Make unrecognized flags not fatal. 2015-01-19 12:22:57 +00:00
sanitizer_flags.cc [asan] Warn if unsupported flags are used at activation. 2015-01-20 12:19:14 +00:00
sanitizer_flags.h [asan] Warn if unsupported flags are used at activation. 2015-01-20 12:19:14 +00:00
sanitizer_flags.inc [ASan] Add use_madv_dontdump flag. 2015-02-03 10:15:15 +00:00
sanitizer_freebsd.h Support getting process maps for sanitizers needs on FreeBSD in 32-bit mode 2014-08-08 06:21:09 +00:00
sanitizer_internal_defs.h Fix/workaround for OS X truncated stacktraces taken by external tools 2015-01-22 23:36:47 +00:00
sanitizer_lfstack.h [Sanitizer] update style checker script and fix namespace style warnings 2013-01-30 07:45:58 +00:00
sanitizer_libc.cc [compiler-rt] Make MaybeReexec properly process DYLD_INSERT_LIBRARIES when using non-absolute paths 2015-02-06 12:07:29 +00:00
sanitizer_libc.h [compiler-rt] Make MaybeReexec properly process DYLD_INSERT_LIBRARIES when using non-absolute paths 2015-02-06 12:07:29 +00:00
sanitizer_libignore.cc Replace InternalScopedBuffer<char> with InternalScopedString where applicable. 2014-12-02 22:20:11 +00:00
sanitizer_libignore.h tsan: resolve symlinks for called_from_lib suppressions 2013-10-15 11:34:59 +00:00
sanitizer_linux.cc [TSan] Fix Go build. 2015-01-30 23:04:57 +00:00
sanitizer_linux.h Removed r221896, it seems to break build in various ways. 2014-11-13 19:37:30 +00:00
sanitizer_linux_libcdep.cc [Sanitizer] Fix checking for weak function presence. 2015-02-02 20:37:26 +00:00
sanitizer_list.h [Sanitizer] Remove the hardcoded limit of address ranges in LoadedModule. 2015-01-08 22:03:05 +00:00
sanitizer_mac.cc [Sanitizer] Make BlockingMutex really linker initialized. 2015-01-30 06:20:43 +00:00
sanitizer_mac.h Add an MACOS_VERSION_UNKNOWN_NEWER enum value for OS X versions above 10.10. 2014-12-16 04:46:15 +00:00
sanitizer_mutex.h [Sanitizer] Make BlockingMutex really linker initialized. 2015-01-30 06:20:43 +00:00
sanitizer_persistent_allocator.cc [msan] Chained origins re-design. 2014-05-21 09:02:13 +00:00
sanitizer_persistent_allocator.h [msan] Chained origins re-design. 2014-05-21 09:02:13 +00:00
sanitizer_placement_new.h Introduce an operator new for LowLevelAllocator, and convert most users to it. 2013-10-24 06:23:39 +00:00
sanitizer_platform.h [MSan] [MIPS] Adding support for MIPS64 (patch by Mohit Bhakkad). 2014-11-19 21:42:33 +00:00
sanitizer_platform_interceptors.h [Msan] Fix the pthread_attr_get unit test to build on FreeBSD 2015-02-04 09:08:00 +00:00
sanitizer_platform_limits_linux.cc [asan] i686-linux-android support. 2014-07-03 14:20:56 +00:00
sanitizer_platform_limits_posix.cc [sanitizer] Fix aarch64 sanitizer build with recent glibc 2015-01-21 02:08:42 +00:00
sanitizer_platform_limits_posix.h [Sanitizers] Introduce GET_LINK_MAP_BY_DLOPEN_HANDLE() macro 2015-01-30 12:43:52 +00:00
sanitizer_posix.cc [sanitizer] Fix an edge case in MemoryRangeIsAvailable. 2015-01-23 15:14:27 +00:00
sanitizer_posix_libcdep.cc [ASan] Add use_madv_dontdump flag. 2015-02-03 10:15:15 +00:00
sanitizer_printf.cc Removed r221896, it seems to break build in various ways. 2014-11-13 19:37:30 +00:00
sanitizer_procmaps.h Segregate FreeBSD-specific parts from sanitizer_procmaps_linux.cc 2014-08-06 10:16:52 +00:00
sanitizer_procmaps_common.cc Replace InternalScopedBuffer<char> with InternalScopedString where applicable. 2014-12-02 22:20:11 +00:00
sanitizer_procmaps_freebsd.cc Support getting process maps for sanitizers needs on FreeBSD in 32-bit mode 2014-08-08 06:21:09 +00:00
sanitizer_procmaps_linux.cc Segregate FreeBSD-specific parts from sanitizer_procmaps_linux.cc 2014-08-06 10:16:52 +00:00
sanitizer_procmaps_mac.cc Replace InternalScopedBuffer<char> with InternalScopedString where applicable. 2014-12-02 22:20:11 +00:00
sanitizer_quarantine.h [asan] add a flag soft_rss_limit_mb 2015-01-06 23:53:32 +00:00
sanitizer_report_decorator.h [Sanitizer] Merge AnsiColorDecorator and SanitizerCommonDecorator, use the latter in UBSan 2014-06-13 23:46:37 +00:00
sanitizer_stackdepot.cc [msan] Better use-after-free reports. 2015-01-22 13:33:16 +00:00
sanitizer_stackdepot.h Change StackDepot interface to use StackTrace more extensively 2014-10-26 06:23:07 +00:00
sanitizer_stackdepotbase.h [Sanitizer] Return code that calculates hash for stacktrace back to StackDepot implementation 2014-10-27 03:10:27 +00:00
sanitizer_stacktrace.cc [msan] Better use-after-free reports. 2015-01-22 13:33:16 +00:00
sanitizer_stacktrace.h [msan] Better use-after-free reports. 2015-01-22 13:33:16 +00:00
sanitizer_stacktrace_libcdep.cc [msan] Better use-after-free reports. 2015-01-22 13:33:16 +00:00
sanitizer_stacktrace_printer.cc [Sanitizer] Introduce generic stack frame rendering machinery 2014-11-05 22:44:36 +00:00
sanitizer_stacktrace_printer.h [Sanitizer] Introduce generic stack frame rendering machinery 2014-11-05 22:44:36 +00:00
sanitizer_stoptheworld.h [Sanitizer] Rename InternalVector to InternalMmapVector 2013-06-14 09:59:40 +00:00
sanitizer_stoptheworld_linux_libcdep.cc Make signal-related functions use __sanitizer_* structures instead of __sanitizer_kernel_* ones. 2014-01-31 11:29:51 +00:00
sanitizer_suppressions.cc Implement AddressSanitizer suppressions. 2014-12-05 20:26:09 +00:00
sanitizer_suppressions.h Implement AddressSanitizer suppressions. 2014-12-05 20:26:09 +00:00
sanitizer_symbolizer.cc Simplify Symbolizer::SymbolizePC() interface. 2014-12-02 19:48:40 +00:00
sanitizer_symbolizer.h Simplify Symbolizer::SymbolizePC() interface. 2014-12-02 19:48:40 +00:00
sanitizer_symbolizer_libbacktrace.cc Fix data symbolization with libbacktrace. Patch by Jakub Jelinek! 2014-12-16 01:52:55 +00:00
sanitizer_symbolizer_libbacktrace.h Fix data symbolization with libbacktrace. Patch by Jakub Jelinek! 2014-12-16 01:52:55 +00:00
sanitizer_symbolizer_libcdep.cc Satisfy -Wparentheses. 2014-07-26 05:07:41 +00:00
sanitizer_symbolizer_posix_libcdep.cc Fix data symbolization with libbacktrace. Patch by Jakub Jelinek! 2014-12-16 01:52:55 +00:00
sanitizer_symbolizer_win.cc Simplify Symbolizer::SymbolizePC() interface. 2014-12-02 19:48:40 +00:00
sanitizer_syscall_generic.inc [FreeBSD] Port sanitizers' syscalls. 2014-03-07 10:03:54 +00:00
sanitizer_syscall_linux_x86_64.inc [FreeBSD] Port sanitizers' syscalls. 2014-03-07 10:03:54 +00:00
sanitizer_thread_registry.cc tsan: address comments in r214912 2014-09-02 09:34:34 +00:00
sanitizer_thread_registry.h tsan: address comments in r214912 2014-09-02 09:34:34 +00:00
sanitizer_tls_get_addr.cc [sanitizer] Fix build on platforms where dtls support is disabled. 2014-06-25 11:43:46 +00:00
sanitizer_tls_get_addr.h [msan] Fix false positive on dynamic tls. 2014-06-25 11:30:35 +00:00
sanitizer_unwind_posix_libcdep.cc [msan] Better use-after-free reports. 2015-01-22 13:33:16 +00:00
sanitizer_win.cc [ASan] Add use_madv_dontdump flag. 2015-02-03 10:15:15 +00:00