10b57cec5SDimitry AndricAddressSanitizer RT
20b57cec5SDimitry Andric================================
30b57cec5SDimitry AndricThis directory contains sources of the AddressSanitizer (ASan) runtime library.
40b57cec5SDimitry Andric
50b57cec5SDimitry AndricDirectory structure:
60b57cec5SDimitry AndricREADME.txt       : This file.
70b57cec5SDimitry AndricMakefile.mk      : File for make-based build.
80b57cec5SDimitry AndricCMakeLists.txt   : File for cmake-based build.
90b57cec5SDimitry Andricasan_*.{cc,h}    : Sources of the asan runtime library.
100b57cec5SDimitry Andricscripts/*        : Helper scripts.
110b57cec5SDimitry Andrictests/*          : ASan unit tests.
120b57cec5SDimitry Andric
130b57cec5SDimitry AndricAlso ASan runtime needs the following libraries:
140b57cec5SDimitry Andriclib/interception/      : Machinery used to intercept function calls.
150b57cec5SDimitry Andriclib/sanitizer_common/  : Code shared between various sanitizers.
160b57cec5SDimitry Andric
170b57cec5SDimitry AndricASan runtime currently also embeds part of LeakSanitizer runtime for
180b57cec5SDimitry Andricleak detection (lib/lsan/lsan_common.{cc,h}).
190b57cec5SDimitry Andric
200b57cec5SDimitry AndricASan runtime can only be built by CMake. You can run ASan tests
210b57cec5SDimitry Andricfrom the root of your CMake build tree:
220b57cec5SDimitry Andric
230b57cec5SDimitry Andricmake check-asan
240b57cec5SDimitry Andric
250b57cec5SDimitry AndricFor more instructions see:
260b57cec5SDimitry Andrichttps://github.com/google/sanitizers/wiki/AddressSanitizerHowToBuild
27