[msan] Switch to common printf interceptors.

Format string parsing is disabled by default.
This is not expected to meaningfully change the tool behavior.
With this change, check_printf flag could be used to evaluate printf format
string parsing in MSan.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208295 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Intercept strxfrm.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208303 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Update sanitizer_common and asan test_util headers to support building on Windows

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208306 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan tests] Auto-define ASAN_NEEDS_SEGV rather than hardcode it in cmake

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208322 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan tests] More progress towards Windows support

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208323 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan tests] More progress towards Windows support

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208325 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan tests] More progress towards Windows support

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208326 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan tests] Fix non-Windows breakage

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208332 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Fix coverage behavior when a PC belongs to an unknown address range.

This happens, e.g., when coverage data is collected for a module which is then
dlclose()'d. Currently this causes CovDump() to ignore all PCs that are greater
than the unrecognized PC. In other words, unloading a module causes ASan to
silently ignore any coverage data for modules loaded at higher addresses.
Instead we should just skip the unrecognized PCs.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208333 91177308-0d34-0410-b5e6-96231b3b80d8
Fixup test added in r208333

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208356 91177308-0d34-0410-b5e6-96231b3b80d8
Fixup for r208066. Properly get values of PTRACE_GETREGSET/PTRACE_SETREGSET.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208363 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Move lit config for sanitizer_common unit tests under Unit/ dir for consistency.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208373 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Add the machinery to run the same test under several sanitizers

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