[sanitizer] Fix wrong size of addrinfo::ai_addrlen.

Add compile time tests for sizes and offsets of all sanitizer-posix types.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182993 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Use the fast version of GetBlockBegin for leak checking in LSan and ASan.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182994 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Fix r182994 - update test.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182995 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Handle mixed track-origins and keep-going settings (compiler-rt part).

Before this change, each module defined a weak_odr global __msan_track_origins
with a value of 1 if origin tracking is enabled, 0 if disabled. If there are
modules with different values, any of them may win. If 0 wins, and there is at
least one module with 1, the program will most likely crash.

With this change, __msan_track_origins is only emitted if origin tracking is
on. Then runtime library detects if there is at least one module with origin
tracking, and enables runtime support for it.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182996 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Fix gcc build of msan runtime.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182999 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Run the leak detection tests under both ASan and LSan.

Change the LSan lit test logic. Now "check-lsan" tests the leak
checking functionality in both standalone LSan and ASan.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183000 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Added a dummy unittest to suppress LIT warnings.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183004 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Do not buffer stdin in asan_symbolize.py


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183006 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Fix kThreadDescriptorSize for glibc <= 2.11.

Address issue reported by Greg Fitzgerald.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183098 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Add __lsan_disable() and __lsan_enable().

Objects allocated after a call to __lsan_disable() will be treated as
live memory. Also add a ScopedDisabler.

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