[sanitizer] modf/modff/modfl interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182838 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Convert the remaining LSan tests to output tests.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182839 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Use raw check in internal allocator to prevent self-deadlocks. Try to fix Windows build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182840 91177308-0d34-0410-b5e6-96231b3b80d8
[nolibc] Now that we have a custom allocator, remove dummy allocator
definitions from test.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182841 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: match "race" suppressions against "race on vptr" reports


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182842 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Move TSan and MSan recvmsg interceptors to common.


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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182844 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Fix Mac build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182845 91177308-0d34-0410-b5e6-96231b3b80d8
Fix MSVC warnings at the -W2 level

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182848 91177308-0d34-0410-b5e6-96231b3b80d8
[nolibc] Unweak SymbolizerPrepareForSandboxing and move it to libc-independent part.

Fixes the Go build.

Differential Revision: http://llvm-reviews.chandlerc.com/D877

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182851 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Fix getaddrinfo interceptor to use the actual returned sockaddr size.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182852 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Change the way GetThreadStackAndTls() obtains the thread descriptor address.

Instead of using arch_prctl(ARCH_GET_FS), read the address from the
tread descriptor itself. This lets us avoid sandboxing issues. Also,
GetThreadStackAndTls() can now be implemented on i386.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182853 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Make ASan report the correct thread address ranges to LSan.

This CL enables thread support in LSan when used on top of ASan.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182854 91177308-0d34-0410-b5e6-96231b3b80d8
Fix MSVC W3 compiler warnings

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182857 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Fix r182854: run the unpoison_tls test only on Linux.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182858 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Fix r182858.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182862 91177308-0d34-0410-b5e6-96231b3b80d8
Replaced 'bool .* = 0;' with '... = false;'

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182868 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Minor cleanup: remove a couple of unused variables.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182915 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] introduce LargeMmapAllocator::GetBlockBeginFastSingleThreaded, required for LeakSanitizer to work faster. Also fix lint.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182917 91177308-0d34-0410-b5e6-96231b3b80d8
Fix #if guards in sanitizer_common code

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