[asan] fix android build and lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169968 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] fix compilation on Mac.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169969 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: more precise handling of IO synchronization


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169970 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: add missing files


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169971 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Fixed a compiler warning.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169972 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: add comment to tsan_fd.h file


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169973 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Enhance OOB tests to check for access type (read or write).



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169974 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: explain why pthread_cond_init() interceptor is commented out


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169975 91177308-0d34-0410-b5e6-96231b3b80d8
[tsan] fix cmake build 

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169982 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] add OnMap/OnUmap callbacks to the allocator interface

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169985 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Fix test expectations for strcat/strncat.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169987 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] change the way SizeClassAllocator64 allocated memory from the system: instead of one huge mmap(NORESERVE) it does one huge mprotect and then does small on-demand mmaps. This allows us to call OnMap callbacks which are required to poison newly allocated memory in asan

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170097 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] fix the Android build (pread64 interceptor again)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170098 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] introduce MmapFixedOrDie and use it in SizeClassAllocator64

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170099 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] fix windows build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170101 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] replace size_t with SIZE_T in interceptors (same for ssize_t, off_t and off64_t). This is done to avoid confusion and to make the code work with compilers that define size_t w/o any includes (MSVC)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170103 91177308-0d34-0410-b5e6-96231b3b80d8
ubsan: Add -fsanitize=bool and -fsanitize=enum, which check for loads of
bit-patterns which are not valid values for enumerated or boolean types.
These checks are the ubsan analogue of !range metadata.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170107 91177308-0d34-0410-b5e6-96231b3b80d8
ubsan unit tests for -fsanitize=bool and -fsanitize=enum.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170109 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] add asan/lit_tests/overflow-in-qsort.cc (not fully working yet)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170111 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] more macro for conditional interception of pread functions

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