[sanitizer] fix build with glibc 2.4, patch by Sandra Loosemore

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208066 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Fix print_shadow test.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208069 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Don't crash when ASAN_OPTIONS have disable_core=1

Reviewed at http://reviews.llvm.org/D3610

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208070 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Print addresses in hexadecimal.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208089 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] introduce interface function __sanitizer_verify_contiguous_container to verify annotations in vector-like containers

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208092 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Include asm instrumentation source in Makefile build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208172 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Fix __msan_check_mem_is_initialized and prettify its output.


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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208196 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Replace a macro with a function.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208207 91177308-0d34-0410-b5e6-96231b3b80d8
Ignore stack-buffer-overflow in std::_Find_elem<*> / std::num_get<...>::_Getifld

Reviewed at http://reviews.llvm.org/D3650

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208215 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] fix i386 tests broken from r207707

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208240 91177308-0d34-0410-b5e6-96231b3b80d8
[MSan] Fixup for r206983: MsanThread may be unavailable in signal handler: signals may be raised while thread is being destroyed

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208250 91177308-0d34-0410-b5e6-96231b3b80d8
[DFSan] Update build rules for Makefile build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208268 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Unconditionally write to target buffer in *sprintf interceptors.

This does not change the default behavior (check_printf in on by default in all tools).
With this change, check_printf flag only affects format string parsing.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208290 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Update tests for r208290.

sprintf output buffer is now always sanitized.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208291 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Fix potential infinite recursion in a test.

If printf is intercepted (it is not atm), REAL(printf) call in the interceptor
would get redirected back to my_lgamma, resulting in infinite recursion.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208294 91177308-0d34-0410-b5e6-96231b3b80d8
[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