asan: fix typo in comment


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157314 91177308-0d34-0410-b5e6-96231b3b80d8
Use zero-based shadow by default on Android.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157318 91177308-0d34-0410-b5e6-96231b3b80d8
Move AsanShadowRangeIsAvailable() from mac to posix.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157326 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: add a flag to control RunningOnValgrind() return value


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157383 91177308-0d34-0410-b5e6-96231b3b80d8
asan/tsan: weak interceptors
The idea isthat asan/tsan can survive if user intercepts the same functions. At the same time user has an ability to call back into asan/tsan runtime. See the following tests for examples:
asan/output_tests/interception_failure_test-linux.cc
asan/output_tests/interception_test-linux.cc
asan/output_tests/interception_malloc_test-linux.cc



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157388 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: fix compilation with newest clang


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157391 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: compilation of tests with newest clang


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157392 91177308-0d34-0410-b5e6-96231b3b80d8
Adding back a right parenthesis that was dropped in r157388.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157406 91177308-0d34-0410-b5e6-96231b3b80d8
asan: fix tests
depending on -m32/-m64 addr2line says either e.g. __xsan_strnlen or just strnlen



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157464 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: output message about failure to intercept only if verbosity flag is passed



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157465 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: do not call into libc in symbolizer and in other code (this causes recursion and crashes)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157466 91177308-0d34-0410-b5e6-96231b3b80d8
Introduce the check_malloc_usable_size flag (on by default).
When the flag is set to zero, we do not check for errors in malloc_usable_size.
This may be useful to work around a bug in Nvidia drivers prior to 295.*


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157472 91177308-0d34-0410-b5e6-96231b3b80d8
Factor ParseAsanOptions outside __asan_init



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157473 91177308-0d34-0410-b5e6-96231b3b80d8
Typo fix.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157477 91177308-0d34-0410-b5e6-96231b3b80d8
Sync with old GCOV runtime library's file.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157559 91177308-0d34-0410-b5e6-96231b3b80d8
Don't use 'strrchr', which isn't implemented here yet.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157560 91177308-0d34-0410-b5e6-96231b3b80d8
asan: remove static libraries on make clean


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157565 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: do not clean stack/tls for main thread


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157566 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: use DCHECK_GT/LT instead of plain DCHECK (better diagnostics)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157567 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: more robust detection of stack of main thread


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157568 91177308-0d34-0410-b5e6-96231b3b80d8