hanchenye-llvm-project/compiler-rt/lib/asan
Kostya Serebryany 9366d42e91 [asan] fix a bug (issue 19) where dlclose and the following mmap caused a false positive. run-time part.
llvm-svn: 146687
2011-12-15 21:55:34 +00:00
..
mach_override [asan] fix asan-rt interceptors on Snow Leopard. Patch by glider@google.com 2011-12-09 18:18:54 +00:00
scripts
sysinfo [asan] fix some more format warnings in sysinfo/sysinfo.cc 2011-12-13 23:34:59 +00:00
tests [asan] fix a bug (issue 19) where dlclose and the following mmap caused a false positive. run-time part. 2011-12-15 21:55:34 +00:00
Makefile.mk build: Add ModuleName per-subdir variable as a way to organize the different 2011-12-02 02:42:07 +00:00
Makefile.old [asan] insert __asan_init into ".preinit_array" section. Linux-only. 2011-12-14 00:19:03 +00:00
README.txt
asan_allocator.cc [asan] canonicalise the output for double-free and wrong-free. fixes asan issue 18 2011-12-13 19:16:36 +00:00
asan_allocator.h [asan] make use-after-return mode more robust: allow to call instrumented functions while reporting an error 2011-12-09 01:49:31 +00:00
asan_globals.cc [asan] fix a bug (issue 19) where dlclose and the following mmap caused a false positive. run-time part. 2011-12-15 21:55:34 +00:00
asan_interceptors.cc [asan] canonicalise the output for double-free and wrong-free. fixes asan issue 18 2011-12-13 19:16:36 +00:00
asan_interceptors.h [asan] don't require __cxa_throw to be present in the process. This is the last dependency on libstdc++ 2011-12-05 17:56:32 +00:00
asan_interface.h [asan] fix a bug (issue 19) where dlclose and the following mmap caused a false positive. run-time part. 2011-12-15 21:55:34 +00:00
asan_internal.h [asan] poison the internal asan heap memory, just in case. Change Printf to Report when debugging globals. 2011-12-15 17:41:30 +00:00
asan_linux.cc [asan] flatten the asan-rt build slightly 2011-12-01 21:40:52 +00:00
asan_lock.h
asan_mac.cc [asan] quick fix for mac build, second attempt. Sorry for spam. 2011-12-02 18:52:35 +00:00
asan_mac.h [asan] flatten the asan-rt build slightly 2011-12-01 21:40:52 +00:00
asan_malloc_linux.cc [asan] flatten the asan-rt build slightly 2011-12-01 21:40:52 +00:00
asan_malloc_mac.cc asan: #if 0 out some unused functions (we build with -Werror). 2011-12-01 23:35:47 +00:00
asan_mapping.h Refactor shadow poisoning done by asan-rt, no funtionality changes; patch by samsonov@google.com 2011-11-30 18:50:23 +00:00
asan_poisoning.cc [asan] minimize the use of STL. One bit is still left. 2011-12-02 18:42:04 +00:00
asan_printf.cc
asan_rtl.cc [asan] poison the internal asan heap memory, just in case. Change Printf to Report when debugging globals. 2011-12-15 17:41:30 +00:00
asan_stack.cc [asan] move build-time config options from makefile to source (otherwise we need config options in all makefiles) 2011-12-08 18:30:42 +00:00
asan_stack.h
asan_stats.cc [asan] always collect malloc statstics (removed FLAG_stats) 2011-12-05 19:17:53 +00:00
asan_stats.h
asan_thread.cc
asan_thread.h
asan_thread_registry.cc
asan_thread_registry.h

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).
sysinfo/*        : Portable utility to iterate over /proc/maps (BSD 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/