2011-11-30 09:07:02 +08:00
|
|
|
AddressSanitizer RT
|
|
|
|
================================
|
2015-02-19 06:26:49 +08:00
|
|
|
This directory contains sources of the AddressSanitizer (ASan) runtime library.
|
2011-11-30 09:07:02 +08:00
|
|
|
|
2014-05-29 07:09:45 +08:00
|
|
|
Directory structure:
|
2011-11-30 09:07:02 +08:00
|
|
|
README.txt : This file.
|
2015-02-18 07:30:51 +08:00
|
|
|
Makefile.mk : File for make-based build.
|
2012-09-06 14:39:02 +08:00
|
|
|
CMakeLists.txt : File for cmake-based build.
|
2014-05-29 07:09:45 +08:00
|
|
|
asan_*.{cc,h} : Sources of the asan runtime library.
|
2011-11-30 09:07:02 +08:00
|
|
|
scripts/* : Helper scripts.
|
2012-09-06 14:39:02 +08:00
|
|
|
tests/* : ASan unit tests.
|
2011-11-30 09:07:02 +08:00
|
|
|
|
2012-09-06 14:39:02 +08:00
|
|
|
Also ASan runtime needs the following libraries:
|
|
|
|
lib/interception/ : Machinery used to intercept function calls.
|
2015-02-19 06:26:49 +08:00
|
|
|
lib/sanitizer_common/ : Code shared between various sanitizers.
|
2011-11-30 09:07:02 +08:00
|
|
|
|
2015-02-19 06:26:49 +08:00
|
|
|
ASan runtime currently also embeds part of LeakSanitizer runtime for
|
|
|
|
leak detection (lib/lsan/lsan_common.{cc,h}).
|
2011-11-30 09:07:02 +08:00
|
|
|
|
2015-02-19 06:26:49 +08:00
|
|
|
ASan runtime can only be built by CMake. You can run ASan tests
|
|
|
|
from the root of your CMake build tree:
|
2011-11-30 09:07:02 +08:00
|
|
|
|
2012-09-06 14:39:02 +08:00
|
|
|
make check-asan
|
2011-11-30 09:07:02 +08:00
|
|
|
|
2012-09-06 14:39:02 +08:00
|
|
|
For more instructions see:
|
2015-12-05 01:37:40 +08:00
|
|
|
https://github.com/google/sanitizers/wiki/AddressSanitizerHowToBuild
|