[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