llvm-project/compiler-rt/lib/asan
Alexey Samsonov 4d520640ba [ASan] use write instead of puts in malloc hooks test for ASan, as puts calls malloc on Mac
llvm-svn: 162359
2012-08-22 13:32:37 +00:00
..
dynamic Dynamic interceptors for dispatch_async and dispatch_after. 2012-08-20 11:59:26 +00:00
lit_tests [ASan] use write instead of puts in malloc hooks test for ASan, as puts calls malloc on Mac 2012-08-22 13:32:37 +00:00
output_tests [ASan] get rid of ASAN_USE_EXTERNAL_SYMBOLIZER compiler def in favor of __asan_set_symbolize_callback interface function. Now the user doesn't have to recompile ASan runtime to provide its own symbolizer 2012-08-22 13:31:37 +00:00
scripts Pass offset of the frame address within the binary to addr2line instead of the absolute address. 2012-08-15 13:58:24 +00:00
tests [asan] better diagnostics for mmap failure 2012-08-14 15:18:40 +00:00
CMakeLists.txt Commit the source and CMake changes that will allow to build ASan runtime 2012-08-17 09:00:08 +00:00
Makefile.mk [Sanitizer] Make ASan/TSan sources depend on headers from interception library 2012-08-01 14:55:49 +00:00
Makefile.old [asan] move tests from asan_interface_test.cc to asan_noinst_test.cc. Now all these tests do not require instrumentation and work directly with asan rt 2012-06-25 14:23:07 +00:00
README.txt Delete sysinfo/* and all references to it. 2012-01-18 11:42:30 +00:00
asan_allocator.cc [ASan] make ASan malloc/free hooks weak interface functions, overridable by user. Now the user can control malloc/free hooks without recompiling ASan runtime 2012-08-22 10:12:47 +00:00
asan_allocator.h [ASan] move some functions that describe addresses to asan_report.cc 2012-08-09 09:06:52 +00:00
asan_flags.h [asan] run-time part of the initialization order checker. Patch by Reid Watson with some bits from kcc. The sub-pass is off by default for now. On simple tests it works fine. 2012-08-21 14:10:25 +00:00
asan_globals.cc [asan] run-time part of the initialization order checker. Patch by Reid Watson with some bits from kcc. The sub-pass is off by default for now. On simple tests it works fine. 2012-08-21 14:10:25 +00:00
asan_intercepted_functions.h Dynamic interceptors for dispatch_async and dispatch_after. 2012-08-20 11:59:26 +00:00
asan_interceptors.cc Fix lint warnings. 2012-08-17 10:08:51 +00:00
asan_interceptors.h Lots of trivial changes to remove extraneous semicolons throughout ASan. 2012-06-25 06:53:10 +00:00
asan_interface.h [ASan] get rid of ASAN_USE_EXTERNAL_SYMBOLIZER compiler def in favor of __asan_set_symbolize_callback interface function. Now the user doesn't have to recompile ASan runtime to provide its own symbolizer 2012-08-22 13:31:37 +00:00
asan_internal.h [ASan] get rid of ASAN_USE_EXTERNAL_SYMBOLIZER compiler def in favor of __asan_set_symbolize_callback interface function. Now the user doesn't have to recompile ASan runtime to provide its own symbolizer 2012-08-22 13:31:37 +00:00
asan_linux.cc Intercept CFAllocator for each thread in the program. 2012-07-23 14:07:58 +00:00
asan_lock.h tsan/asan: unify ScopedLock 2012-06-29 17:10:08 +00:00
asan_mac.cc [asan] fix lint 2012-08-21 06:43:44 +00:00
asan_mac.h Move the prototype of __CFInitialize to asan_mac.h so that asan_malloc_mac.cc may use it in the dynamic library mode. 2012-08-15 12:23:36 +00:00
asan_malloc_linux.cc [ASan] fix names of malloc/free replacements on Android 2012-08-06 15:13:22 +00:00
asan_malloc_mac.cc Commit the source and CMake changes that will allow to build ASan runtime 2012-08-17 09:00:08 +00:00
asan_malloc_win.cc Remove file-type tags for .cc files in ASan run-time library 2012-06-04 13:50:10 +00:00
asan_mapping.h For wild addresses in the shadow or shadow gap areas print an error message instead of crashing on a check. 2012-07-23 08:22:27 +00:00
asan_new_delete.cc Remove file-type tags for .cc files in ASan run-time library 2012-06-04 13:50:10 +00:00
asan_poisoning.cc [ASan] Use common flags parsing machinery. 2012-07-09 14:36:04 +00:00
asan_posix.cc [ASan] Create new files asan_report.{h,cc} as a preparation for refactoring of ASan error reporting code. 2012-08-09 07:40:58 +00:00
asan_printf.cc [Sanitizer] Renaming: SNPrintf -> internal_snprintf (and move it to sanitizer libc) 2012-06-19 09:21:57 +00:00
asan_report.cc [asan] run-time part of the initialization order checker. Patch by Reid Watson with some bits from kcc. The sub-pass is off by default for now. On simple tests it works fine. 2012-08-21 14:10:25 +00:00
asan_report.h [ASan] share code executed at the beginning/end of printing error reports 2012-08-10 15:13:05 +00:00
asan_rtl.cc [ASan] get rid of ASAN_USE_EXTERNAL_SYMBOLIZER compiler def in favor of __asan_set_symbolize_callback interface function. Now the user doesn't have to recompile ASan runtime to provide its own symbolizer 2012-08-22 13:31:37 +00:00
asan_stack.cc [ASan] get rid of ASAN_USE_EXTERNAL_SYMBOLIZER compiler def in favor of __asan_set_symbolize_callback interface function. Now the user doesn't have to recompile ASan runtime to provide its own symbolizer 2012-08-22 13:31:37 +00:00
asan_stack.h [ASan] Use common flags parsing machinery. 2012-07-09 14:36:04 +00:00
asan_stats.cc [Sanitizer]: Introduce a common internal printf function. For now, also use tool-specific wrappers TsanPrintf (its output is controlled by TSan flags) and AsanPrintf (which copies its results to the ASan-private buffer). Supported formats: %[z]{d,u,x}, %s, %p. Re-write all format strings in TSan according to this format (this should have no effect on 64-bit platforms). 2012-06-06 13:11:29 +00:00
asan_stats.h [asan] more renaming 2012-05-31 14:35:53 +00:00
asan_thread.cc Intercept CFAllocator for each thread in the program. 2012-07-23 14:07:58 +00:00
asan_thread.h [asan] get rid of the last operator new call in asan rtl 2012-07-17 07:20:13 +00:00
asan_thread_registry.cc [ASan] Use common flags parsing machinery. 2012-07-09 14:36:04 +00:00
asan_thread_registry.h [ASan] cmake cleanup: make tab/space padding in CMakeLists consistent, silence/fix some pedantic warnings 2012-07-02 06:48:10 +00:00
asan_win.cc [ASan] get rid of ASAN_USE_EXTERNAL_SYMBOLIZER compiler def in favor of __asan_set_symbolize_callback interface function. Now the user doesn't have to recompile ASan runtime to provide its own symbolizer 2012-08-22 13:31:37 +00:00

README.txt

AddressSanitizer RT
================================
This directory contains sources of the AddressSanitizer (asan) run-time library.
We are in the process of integrating AddressSanitizer with LLVM, stay tuned.

Directory structre:

README.txt       : This file.
Makefile.mk      : Currently a stub for a proper makefile. not usable.
Makefile.old     : Old out-of-tree makefile, the only usable one so far.
asan_*.{cc,h}    : Sources of the asan run-time lirbary.
mach_override/*  : Utility to override functions on Darwin (MIT License).
scripts/*        : Helper scripts.

Temporary build instructions (verified on linux):

cd lib/asan
make -f Makefile.old get_third_party  # gets googletest and cpplint
make -f Makefile.old test -j 8 CLANG_BUILD=/path/to/Release+Asserts
# Optional:
# make -f Makefile.old install # installs clang and rt to lib/asan_clang_linux

For more info see http://code.google.com/p/address-sanitizer/