llvm-capstone/compiler-rt/lib/asan
Francis Ricci e9438b35aa Fix memory leaks in address sanitizer darwin tests
Summary: These leaks are detected by leak sanitizer for darwin.

Reviewers: glider, kubamracek, kcc, alekseyshl

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D31978

llvm-svn: 300080
2017-04-12 17:31:41 +00:00
..
scripts asan_symbolize.py: [Py3] Get rid of "print" statement. Use print() or write() instead. 2017-02-08 14:07:39 +00:00
tests Fix memory leaks in address sanitizer darwin tests 2017-04-12 17:31:41 +00:00
.clang-format
asan_activation_flags.inc ASAN activate/deactive controls thread_local_quarantine_size_kb option. 2017-01-12 18:51:25 +00:00
asan_activation.cc ASAN activate/deactive controls thread_local_quarantine_size_kb option. 2017-01-12 18:51:25 +00:00
asan_activation.h
asan_allocator.cc [asan] Implement "scribble" flags, which overwrite free'd memory with 0x55 2017-03-30 15:44:57 +00:00
asan_allocator.h Improved ASAN allocator and quarantine stats. 2017-01-05 22:17:53 +00:00
asan_blacklist.txt
asan_debugging.cc
asan_descriptions.cc [asan] Support line numbers in StackVarDescr 2017-03-30 00:41:09 +00:00
asan_descriptions.h
asan_errors.cc Restrict usage of MemoryMappingLayout to platforms which support it 2017-03-01 19:20:13 +00:00
asan_errors.h
asan_fake_stack.cc
asan_fake_stack.h
asan_flags.cc Enable builds of darwin lsan by default 2017-04-06 17:41:26 +00:00
asan_flags.h
asan_flags.inc [asan] Move AsanCheckDynamicRTPrereqs check under flag 2017-03-31 06:36:37 +00:00
asan_globals_win.cc [sanitizer] Split dll_thunks into different sanitizers. 2017-02-02 23:01:28 +00:00
asan_globals.cc Revert "[asan] Fix dead stripping of globals on Linux (compiler-rt)." 2017-04-10 20:36:43 +00:00
asan_init_version.h
asan_interceptors.cc [sanitizer] Bail out with warning if user dlopens shared library with RTLD_DEEPBIND flag 2017-03-09 10:47:38 +00:00
asan_interceptors.h
asan_interface_internal.h Revert "[asan] Fix dead stripping of globals on Linux (compiler-rt)." 2017-04-10 20:36:43 +00:00
asan_interface.inc Revert "[asan] Fix dead stripping of globals on Linux (compiler-rt)." 2017-04-10 20:36:43 +00:00
asan_internal.h [compiler-rt][asan] Add support for desallocation of unhandled pointers 2017-02-21 16:09:38 +00:00
asan_linux.cc [asan] Move AsanCheckDynamicRTPrereqs check under flag 2017-03-31 06:36:37 +00:00
asan_lock.h
asan_mac.cc [compiler-rt][asan] Add support for desallocation of unhandled pointers 2017-02-21 16:09:38 +00:00
asan_malloc_linux.cc Recommit: Stop intercepting some malloc-related functions on FreeBSD and 2017-01-30 19:06:13 +00:00
asan_malloc_mac.cc
asan_malloc_win.cc Fix -Wstring-conversion instance 2017-03-15 19:50:02 +00:00
asan_mapping.h [Asan] Eliminate SHADOW_TO_MEM() macro 2017-04-10 19:13:47 +00:00
asan_memory_profile.cc [asan] trying to fix the windows build 2017-03-15 23:53:12 +00:00
asan_new_delete.cc
asan_poisoning.cc
asan_poisoning.h
asan_posix.cc [sanitizer] Move DescribeSignalOrException to sanitizer_common. 2017-02-02 23:01:59 +00:00
asan_preinit.cc
asan_report.cc [asan] Support line numbers in StackVarDescr 2017-03-30 00:41:09 +00:00
asan_report.h [asan] Support line numbers in StackVarDescr 2017-03-30 00:41:09 +00:00
asan_rtl.cc [sanitizer] Add a 'print_module_map' flag which prints modules with UUIDs on Darwin 2017-01-06 20:57:47 +00:00
asan_scariness_score.h
asan_stack.cc
asan_stack.h
asan_stats.cc
asan_stats.h
asan_suppressions.cc General definition for weak functions 2017-01-29 05:44:59 +00:00
asan_suppressions.h
asan_thread.cc [Asan] Eliminate SHADOW_TO_MEM() macro 2017-04-10 19:13:47 +00:00
asan_thread.h
asan_win_dll_thunk.cc Add strtok interceptor for ASAN for Windows. 2017-03-23 23:20:47 +00:00
asan_win_dynamic_runtime_thunk.cc [sanitizer] Add dynamic_runtime_thunk for different sanitizers. 2017-02-02 23:01:41 +00:00
asan_win_weak_interception.cc [sanitizer] Use interception to access to strong definitions in the executable. 2017-02-02 23:02:11 +00:00
asan_win.cc [compiler-rt][asan] Add support for desallocation of unhandled pointers 2017-02-21 16:09:38 +00:00
asan.syms.extra [asan] Export __sancov_* symbols symbols. 2017-01-31 20:23:07 +00:00
CMakeLists.txt Enable builds of darwin lsan by default 2017-04-06 17:41:26 +00:00
README.txt
weak_symbols.txt Enable weak hooks on darwin 2017-01-09 03:51:42 +00:00

AddressSanitizer RT
================================
This directory contains sources of the AddressSanitizer (ASan) runtime library.

Directory structure:
README.txt       : This file.
Makefile.mk      : File for make-based build.
CMakeLists.txt   : File for cmake-based build.
asan_*.{cc,h}    : Sources of the asan runtime library.
scripts/*        : Helper scripts.
tests/*          : ASan unit tests.

Also ASan runtime needs the following libraries:
lib/interception/      : Machinery used to intercept function calls.
lib/sanitizer_common/  : Code shared between various sanitizers.

ASan runtime currently also embeds part of LeakSanitizer runtime for
leak detection (lib/lsan/lsan_common.{cc,h}).

ASan runtime can only be built by CMake. You can run ASan tests
from the root of your CMake build tree:

make check-asan

For more instructions see:
https://github.com/google/sanitizers/wiki/AddressSanitizerHowToBuild