llvm-project/compiler-rt/lib/asan
Timur Iskhodzhanov 0881092306 [ASan/Win] Fix build by using inline assembly instead of an unavailable intrinsic function
llvm-svn: 154106
2012-04-05 17:16:32 +00:00
..
interception Handle two-byte short jumps in the relocated code. 2012-03-22 11:29:53 +00:00
output_tests [asan] fix unwinding inside libc intercepors (asan issue #46) 2012-03-15 01:36:00 +00:00
scripts More accurate atos execution which depends on the file type (EXECUTE, DYLIB) of the binary. 2012-01-26 17:06:50 +00:00
tests Make sure NSObjects are allocated in a way that is visible to ASan. 2012-03-30 17:31:15 +00:00
CMakeLists.txt Initial, very rough cut at a new CMake build system for compiler-rt. 2012-04-04 22:12:04 +00:00
Makefile.mk AddressSanitizer: move mach_override inside interception library 2012-02-09 11:36:12 +00:00
Makefile.old [asan]: remove asan_mac.h 2012-03-21 12:29:54 +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::Deallocate immune to racy double-free (issue #57) 2012-04-05 15:55:09 +00:00
asan_allocator.h Check that the FakeStack size is non-zero before looking into it. 2012-02-21 08:45:41 +00:00
asan_globals.cc [asan] Support for %z to Printf() 2012-03-21 11:32:46 +00:00
asan_interceptors.cc [ASan] use correct C-version of strchr on Windows 2012-04-04 11:36:47 +00:00
asan_interceptors.h Add internal_memset and replace the uses of REAL(memset) with it where the performance allows. 2012-03-29 12:20:47 +00:00
asan_interface.h Introduce __asan_set_error_report_callback() to allow the client program post-process the error reports. 2012-02-27 14:06:48 +00:00
asan_internal.h [asan] make __asan::Deallocate immune to racy double-free (issue #57) 2012-04-05 15:55:09 +00:00
asan_linux.cc Avoid including link.h. 2012-03-26 09:48:41 +00:00
asan_lock.h [asan] move OS-dependent code away from asan_lock.h 2012-01-10 21:24:40 +00:00
asan_mac.cc Add internal_memset and replace the uses of REAL(memset) with it where the performance allows. 2012-03-29 12:20:47 +00:00
asan_malloc_linux.cc [asan] Support for %z to Printf() 2012-03-21 11:32:46 +00:00
asan_malloc_mac.cc Add internal_memset and replace the uses of REAL(memset) with it where the performance allows. 2012-03-29 12:20:47 +00:00
asan_malloc_win.cc [ASan] Add a few more malloc-related interceptors for Windows 2012-03-23 11:33:02 +00:00
asan_mapping.h [asan] performance optimization: make sure the check for poisoned shadow inside inteceptors is inlined 2012-03-15 01:18:06 +00:00
asan_poisoning.cc [asan] performance optimization: make sure the check for poisoned shadow inside inteceptors is inlined 2012-03-15 01:18:06 +00:00
asan_posix.cc [asan] make __asan::Deallocate immune to racy double-free (issue #57) 2012-04-05 15:55:09 +00:00
asan_printf.cc [asan] Support for %z to Printf() 2012-03-21 11:32:46 +00:00
asan_procmaps.h [asan] don't use dl_iterate_phdr on linux, go back to using /proc/self/maps. Hopefully fixes the problem reported by our mozilla friends. 2012-03-08 21:19:07 +00:00
asan_rtl.cc Introduce the use_sigaltstack flag (off by default), which enables using alternate 2012-04-05 10:54:52 +00:00
asan_stack.cc [asan] Support for %z to Printf() 2012-03-21 11:32:46 +00:00
asan_stack.h [asan] fix unwinding inside libc intercepors (asan issue #46) 2012-03-15 01:36:00 +00:00
asan_stats.cc [asan] Support for %z to Printf() 2012-03-21 11:32:46 +00:00
asan_stats.h AddressSanitizer run-time library. Not yet integrated with the compiler-rt build system, but can be built using the old makefile. See details in README.txt 2011-11-30 01:07:02 +00:00
asan_thread.cc Introduce the use_sigaltstack flag (off by default), which enables using alternate 2012-04-05 10:54:52 +00:00
asan_thread.h [ASan] Intercept CreateThread on Windows 2012-02-24 15:28:43 +00:00
asan_thread_registry.cc Allow calling GetCurrentTidOrMinusOne() before AsanThreadRegistry was initialized. 2012-04-05 10:10:57 +00:00
asan_thread_registry.h Allow calling GetCurrentTidOrMinusOne() before AsanThreadRegistry was initialized. 2012-04-05 10:10:57 +00:00
asan_win.cc [ASan/Win] Fix build by using inline assembly instead of an unavailable intrinsic function 2012-04-05 17:16:32 +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/