llvm-project/compiler-rt/lib/asan
Fangrui Song 261d6e05d5 [sanitizer] Simplify __sanitizer::BufferedStackTrace::UnwindImpl implementations
Intended to be NFC. D102046 relies on the refactoring for stack boundaries.
2021-05-13 21:26:31 -07:00
..
scripts [compiler-rt] Handle None value when polling addr2line pipe 2021-05-10 09:46:06 +01:00
tests [clang] accept -fsanitize-ignorelist= in addition to -fsanitize-blacklist= 2021-05-04 10:24:00 -04:00
.clang-format [sanitizer] Set IndentPPDirectives: AfterHash in .clang-format 2021-05-03 13:49:41 -07:00
asan_activation_flags.inc
asan_activation.cpp
asan_activation.h
asan_allocator.cpp sanitizer_common: introduce kInvalidTid/kMainTid 2021-04-30 15:58:05 +02:00
asan_allocator.h
asan_debugging.cpp
asan_descriptions.cpp sanitizer_common: introduce kInvalidTid/kMainTid 2021-04-30 15:58:05 +02:00
asan_descriptions.h Revert "Revert "[compiler-rt][asan] Make wild-pointer crash error more useful"" 2021-03-12 11:35:50 -05:00
asan_errors.cpp [sanitizer] Remove max_len parameter from InternalScopedString 2021-03-17 16:57:09 -07:00
asan_errors.h
asan_fake_stack.cpp [sanitizer] Remove max_len parameter from InternalScopedString 2021-03-17 16:57:09 -07:00
asan_fake_stack.h
asan_flags.cpp
asan_flags.h
asan_flags.inc
asan_fuchsia.cpp [sanitizer_common] Use zx_system_get_page_size() on Fuchsia 2021-02-03 10:45:46 -08:00
asan_globals_win.cpp
asan_globals.cpp
asan_ignorelist.txt [clang] accept -fsanitize-ignorelist= in addition to -fsanitize-blacklist= 2021-05-04 10:24:00 -04:00
asan_init_version.h
asan_interceptors_memintrinsics.cpp
asan_interceptors_memintrinsics.h
asan_interceptors_vfork.S
asan_interceptors.cpp [sanitizers] Fix interception of GLibc regexec 2021-03-08 10:53:55 +00:00
asan_interceptors.h [sanitizers] Fix interception of GLibc regexec 2021-03-08 10:53:55 +00:00
asan_interface_internal.h
asan_interface.inc
asan_internal.h
asan_linux.cpp [asan][memprof] Declare _DYNAMIC and fix -Wparentheses 2020-12-27 20:28:59 -08:00
asan_lock.h
asan_mac.cpp
asan_malloc_linux.cpp
asan_malloc_local.h
asan_malloc_mac.cpp
asan_malloc_win.cpp
asan_mapping_myriad.h
asan_mapping_sparc64.h
asan_mapping.h [ASan][RISCV] Fix RISC-V memory mapping 2021-04-06 20:46:17 +01:00
asan_memory_profile.cpp
asan_new_delete.cpp [ASan] Allow new/delete replacement by making interceptors weak 2021-04-09 14:19:39 -07:00
asan_poisoning.cpp [asan] Increase CHECK limit in __sanitizer_annotate_contiguous_container 2021-02-23 22:14:42 -08:00
asan_poisoning.h
asan_posix.cpp [Sanitizer][NFC] Fix typo 2021-03-01 23:47:03 +00:00
asan_preinit.cpp
asan_premap_shadow.cpp
asan_premap_shadow.h
asan_report.cpp [sanitizer] Convert PrintModuleMap to DumpProcessMap 2020-10-21 12:46:49 -07:00
asan_report.h
asan_rtems.cpp
asan_rtl.cpp sanitizer_common: deduplicate CheckFailed 2021-05-12 08:50:53 +02:00
asan_scariness_score.h
asan_shadow_setup.cpp
asan_stack.cpp [sanitizer] Simplify __sanitizer::BufferedStackTrace::UnwindImpl implementations 2021-05-13 21:26:31 -07:00
asan_stack.h sanitizer_common: deduplicate CheckFailed 2021-05-12 08:50:53 +02:00
asan_stats.cpp
asan_stats.h
asan_suppressions.cpp
asan_suppressions.h
asan_thread.cpp sanitizer_common: introduce kInvalidTid/kMainTid 2021-04-30 15:58:05 +02:00
asan_thread.h sanitizer_common: introduce kInvalidTid/kMainTid 2021-04-30 15:58:05 +02:00
asan_win_dll_thunk.cpp
asan_win_dynamic_runtime_thunk.cpp
asan_win_weak_interception.cpp
asan_win.cpp [ASan] Fix broken Windows build due to 596d534ac3. 2021-01-23 09:09:06 -08:00
asan.syms.extra
CMakeLists.txt [clang] accept -fsanitize-ignorelist= in addition to -fsanitize-blacklist= 2021-05-04 10:24:00 -04:00
README.txt
weak_symbols.txt

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