[Sanitizer] Change MemoryMappingLayout methods to also report memory protection flags (for future use in leak checker). Patch by Sergey Matveev.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176931 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Fix a typo in function name

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176932 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Fixup for r176931 for Mac and Windows

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176935 91177308-0d34-0410-b5e6-96231b3b80d8
Break a >80 char line.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176937 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Move GetTlsSize code from TSan to sanitizer_common.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176938 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Increase stack size as required.

Adjust stack size in pthread_attr_t when the app-requested size does not fit MSan TLS.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176939 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Build ASan, TSan and MSan runtimes with -fno-rtti.

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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176943 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Clean up extensions during msandr shutdown

Otherwise debug DynamoRIO complains at us for leaking memory.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176947 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] Use __sanitizer_pthread_attr_t in TSan

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177012 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] Add missing header inclusion

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177013 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] make ASan assume ASAN_OPTIONS=symbolize=1 if ASAN_EXTERNAL_SYMBOLIZER is defined

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177036 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Write a slightly better implementation of GetEnv() function on Windows

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177051 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Intercept __strdup, strndup, __strndup.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177052 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] fix compilation for Windows

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177054 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Intercept frexp and friends.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177056 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Options for switching between fast and cfi unwinders in run time.

Does not change default behavior.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177057 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] turn off checking initialization order in ASan runtime by default. Instead, it should be turned on by default in the compiler

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177058 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Fix a typo in test.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177059 91177308-0d34-0410-b5e6-96231b3b80d8
[libsanitizer] Fixed incorrect handling of pre-existing threads in ThreadLister test.
Also, extended the test to check that ThreadLister::Reset() works as intended.

Patch by Sergey Matveev (earthdok@google.com)


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