hanchenye-llvm-project/compiler-rt/lib/sanitizer_common
Alexander Potapenko 0ae78444e7 [ASan] Make the remaining coverage tests pass on Darwin, move them to Posix/
This CL:
 - moves PrepareForSandboxing() to sanitizer_posix_libcdep.cc
 - fixes the coverage tests to use flag substitutions defined in r233802 and not rely on hardcoded shared library names
 - moves those tests to TestCases/Posix so that they can be executed on Darwin

llvm-svn: 233828
2015-04-01 17:56:29 +00:00
..
scripts [Sanitizers Coverage] Make sancov.py work with wildcards from Windows CMD shell 2015-04-01 14:46:10 +00:00
tests [sanitizer] Fix file access modes in SanitizerCommon.InternalMmapWithOffset and SanitizerCommon.FileOps 2015-03-23 17:55:19 +00:00
CMakeLists.txt [UBSan] Introduce "ubsan_standalone" library (compiler-rt part). 2015-03-23 20:05:53 +00:00
Makefile.mk Revert "Remove support for building sanitizers from Makefile/autoconf build." 2015-02-17 23:30:51 +00:00
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] Distinguish between read, write and read-write file access modes in OpenFile. 2015-03-23 10:10:46 +00:00
sanitizer_common.h [Sanitizer] Plug a leak in POSIXSymbolizer::FindModuleForAddress 2015-03-26 07:14:29 +00:00
sanitizer_common_interceptors.inc Fix the ASan ioctl.cc test when using COMPILER_RT_DEBUG=On 2015-02-24 10:10:25 +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 Improve SUMMARY reporting in sanitizers. 2015-03-17 23:46:06 +00:00
sanitizer_common_syscalls.inc Allow sanitizer to work with "old" kernel headers 2015-02-24 11:38:41 +00:00
sanitizer_coverage_libcdep.cc [Sanitizer] Be consistent about separating ==%PID== and logged data. 2015-03-31 18:16:42 +00:00
sanitizer_coverage_mapping_libcdep.cc [Sanitizer] Be consistent about separating ==%PID== and logged data. 2015-03-31 18:16:42 +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] Add "final" specifier to FlagHandlerBase::Parse overrides. NFC. 2015-02-12 00:36:39 +00:00
sanitizer_flags.cc tsan: add -Wno-maybe-uninitialized to mingw gcc build flags 2015-02-18 09:37:31 +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 [sanitizer] add run-time a flag coverage_order_pcs. When true, the PCs are dumped in the order of their appearance 2015-03-18 00:23:44 +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_interface_internal.h [Sanitizers] Move the common sanitizer interface from sanitizer_internal_defs.h to a new sanitizer_interface_internal.h file 2015-02-19 15:15:33 +00:00
sanitizer_internal_defs.h Address post-commit feedback on r230344: Don't use weak hooks on Sanitizer Go build for Windows 2015-02-25 17:19:42 +00:00
sanitizer_lfstack.h
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 [Sanitizer] Drop LibIgnore dependency on SuppressionContext. NFC. 2015-02-19 22:56:49 +00:00
sanitizer_libignore.h [Sanitizer] Drop LibIgnore dependency on SuppressionContext. NFC. 2015-02-19 22:56:49 +00:00
sanitizer_linux.cc [Sanitizers] Fix internal_ftruncate() to work on FreeBSD 2015-03-23 19:44:35 +00:00
sanitizer_linux.h [compiler-rt] Allow suppression file to be relative to the location of the executable 2015-02-27 03:12:19 +00:00
sanitizer_linux_libcdep.cc [ASan] Make the remaining coverage tests pass on Darwin, move them to Posix/ 2015-04-01 17:56:29 +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 [ASan] Make the remaining coverage tests pass on Darwin, move them to Posix/ 2015-04-01 17:56:29 +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
sanitizer_platform.h Allow sanitizer to work with "old" kernel headers 2015-02-24 11:38:41 +00:00
sanitizer_platform_interceptors.h [MSan][MIPS] Fix for some failing tests on MIPS64 2015-02-18 09:24:19 +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 Allow sanitizer to work with "old" kernel headers 2015-02-24 11:38:41 +00:00
sanitizer_platform_limits_posix.h [LSan] [MIPS] adding support of LSan for mips64/mips64el arch 2015-02-19 07:30:39 +00:00
sanitizer_posix.cc [ASan] Distinguish between read, write and read-write file access modes in OpenFile. 2015-03-23 10:10:46 +00:00
sanitizer_posix_libcdep.cc [ASan] Make the remaining coverage tests pass on Darwin, move them to Posix/ 2015-04-01 17:56:29 +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 asan: fix comment formatting 2015-03-06 08:43:44 +00:00
sanitizer_stoptheworld_linux_libcdep.cc asan: fix comment formatting 2015-03-06 08:43:44 +00:00
sanitizer_suppressions.cc [compiler-rt] Allow suppression file to be relative to the location of the executable 2015-02-27 03:12:19 +00:00
sanitizer_suppressions.h [Sanitizer] Refactor SuppressionContext class. 2015-02-20 17:41:59 +00:00
sanitizer_symbolizer.cc [Sanitizer RT] Put the Symbolizer module name string ownership in order 2015-03-31 12:50:05 +00:00
sanitizer_symbolizer.h [Sanitizer RT] Put the Symbolizer module name string ownership in order 2015-03-31 12:50:05 +00:00
sanitizer_symbolizer_internal.h Demangling for DlAddrSymbolizer 2015-03-22 11:38:55 +00:00
sanitizer_symbolizer_libbacktrace.cc Symbolizer refactoring: Turn FillAddressAndModuleInfo into FillModuleInfo 2015-03-03 09:18:44 +00:00
sanitizer_symbolizer_libbacktrace.h Symbolizer refactoring: Make LibbacktraceSymbolizer adopt the SymbolizerTool interface 2015-03-02 22:56:25 +00:00
sanitizer_symbolizer_libcdep.cc Adding the implementation of atos and dladdr symbolizers for OS X. 2015-03-12 10:53:18 +00:00
sanitizer_symbolizer_mac.cc [ASan] Suppress the deprecation warning from atos that breaks AtosSymbolizer on OSX 10.9 2015-03-25 11:01:33 +00:00
sanitizer_symbolizer_mac.h Adding the implementation of atos and dladdr symbolizers for OS X. 2015-03-12 10:53:18 +00:00
sanitizer_symbolizer_posix_libcdep.cc [Sanitizer] Plug a leak in POSIXSymbolizer::FindModuleForAddress 2015-03-26 07:14:29 +00:00
sanitizer_symbolizer_process_libcdep.cc Adding the implementation of atos and dladdr symbolizers for OS X. 2015-03-12 10:53:18 +00:00
sanitizer_symbolizer_win.cc Symbolizer refactoring: Merge common parts of POSIXSymbolizer and WinSymbolizer 2015-03-09 18:36:28 +00:00
sanitizer_symbolizer_win.h Symbolizer refactoring: Make WinSymbolizer use SymbolizerTool interface 2015-03-06 14:33:56 +00:00
sanitizer_syscall_generic.inc Unix/BSD system calls are prefixed with SYS_ on FreeBSD and Mac 2015-02-22 22:01:09 +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/Win] UnmapOrDie should not fail on zero address / size 2015-03-31 16:39:20 +00:00