Don't allow a NULL-length file. Try to revert to the buffered version.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190359 91177308-0d34-0410-b5e6-96231b3b80d8
[dfsan] Initial set of DFSAN_OPTIONS flags.

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



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190383 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Don't crash in DescribeHeapAddress if we don't know the current thread's ID

Also make DescribeThread easier to use.
This was firing on Dr.ASan runs, not sure how to repro InvalidTID in a simple test.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190392 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] bool -> int to make msan_interface.h C-compatible.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190402 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Make all pointers in msan_interface "const volatile void *".

This way msan annotations can be used with both normal and volatile memory.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190403 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] refactor the use-after-return API so that the size class is computed at compile time instead of at run-time. compiler-rt part

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190406 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Refactor symbolization interface: use class instead of several functions. Move some code around to get rid of extra source files

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190410 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Remove the explicit function prototypes for intercepted functions on Windows

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190411 91177308-0d34-0410-b5e6-96231b3b80d8
Fixup for r190410: use lazy initialization for symbolizer as some compilers emit global constructor to setup vptr

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190414 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] Use Clang to compile and link TSan unit tests with TSan runtime

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190503 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] build sanitizer_common library with -Wglobal-constructors

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190504 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] Use --whole-archive around TSan runtime in old TSan makefiles. Fix a Go build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190513 91177308-0d34-0410-b5e6-96231b3b80d8
Add empty virtual destructor...

... as this otherwise triggers -Wnon-virtual-dtor.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190520 91177308-0d34-0410-b5e6-96231b3b80d8
Revert r190520 as it wasn't the right fix.

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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190543 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] fully re-implement the FakeStack (use-after-return) to make it faster and async-signal-safe. The implementation is not yet complete (see FIXMEs) but the existing tests pass.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190588 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] use xchg instead of CAS in FakeStack::Allocate (5% faster for this case)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190589 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Fix deadlock in stack unwinder on android/x86.

Fixes PR17116.
Patch by 林作健 (manjian2006 at gmail.com).


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190590 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] hopefully make the FakeStack async-signal safe, enable the related test

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