[asan] provide better reports for cases where memcpy/etc get negative size parameter. Also fix a typo found by Tetsuo Kiso

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206158 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] don't use bool in public interface, make sure the interface headers are usable in plain C

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206160 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] added internal flag mmap_limit_mb

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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206179 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Do not use lambda in sanitizer lit tests.

We may be building with a very old C++ library.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206180 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Fix mmap_limit_mb test to not use C++11.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206182 91177308-0d34-0410-b5e6-96231b3b80d8
sanitizer_deadlock_detector.h: MSVC 2012 doesn't like compound literals

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206199 91177308-0d34-0410-b5e6-96231b3b80d8
sanitizer_atomic_msvc.h: add atomic_fetch_{add,sub} overloads for uintptr_t

This should hopefully unbreak the MSVC build after r206178.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206200 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] try fixing the mmap_limit_mb failure on buildbot (tests pass locally)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206262 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Replace a CHECK for mmap_limit_mb with a RAW_CHECK.
In the case of a CHECK failure the program tries to fork and launch llvm-symbolizer,
but hangs in mz_force_lock because one of the allocator locks is already acquired.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206274 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] fix the alloctor code to not use opaque data structure, which was larger than needed. This was a leftover of the allocator1=>allocator2 migration; thanks Yuri Gribov for reminding

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206280 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] try to harden __tls_get_addr interceptor against signals (no good test still); update the comment in a test.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206367 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] add __asan_load1/__asan_store1/... callbacks to asan-rt; together with -mllvm -asan-instrumentation-with-call-threshold=N this will be a workaround for PR17409

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206387 91177308-0d34-0410-b5e6-96231b3b80d8
Move pthread_cond_* interceptors from sanitizer_common with all the ugly hacks to TSan

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206423 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] fix a bug in outlined asan checks and in the corresponding test (ouch)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206470 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Change AddressSanitizer.LoadStoreCallbacks to use asan_malloc and asan_free.
Interceptors don't really work on OSX in asan_noinst_test.cc (this is more or less intentional),
so one shouldn't call intercepted functions in this test -- added a comment about this.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206477 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: add benchmark that allows to investigate shadow memory consumption




git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206578 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Add new MSan callbacks for instrumentation-with-calls mode.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206584 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Missing declarations for the new interface functions.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@206586 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Run msan_test in the new with-calls mode.


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