[msan] Intercept tzset.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190682 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Add source file:line to stack origin reports.

Runtime library part.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190686 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Add source file:line to stack origin reports.

Test.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190690 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Fix origin of deallocated memory.

MSan poisons deallocated memory but it used to give it an invalid origin value,
resulting in confusing reports. This change associates deallocation stack trace
with such memory.

Note that MSan does not have quarantine, and use-after-free detection is very
limited.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190781 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Check return value of main: compiler-rt tests.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190783 91177308-0d34-0410-b5e6-96231b3b80d8
Minor enhancements for sanitizer_common build rules

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190786 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Check that getSymbolizer() is defined. Turn magic mapping constants into named variables

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190787 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Split ASan unit tests into two different binaries:

(1) instrumented, i.e. compiled and linked with -fsanitize=address
(2) not instrumented, compiled w/o -fsanitize=address and linked with ASan runtime statically.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190788 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Don't link with pthread on Android

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