[msan] Tweak gethostbyname_r interceptor some more.

This is covered by msan_test depending on glibc version and/or resolver setup.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197484 91177308-0d34-0410-b5e6-96231b3b80d8
[LSan] Add a real test for suppressions file instead of duplicated test case.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197488 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Introduce __lsan_(un)register_root_region().

Add an interface for telling LSan that a region of memory is to be treated as a
source of live pointers. Useful for code which stores pointers in mapped memory.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197489 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Always initialize a Symbolizer (even if 'symbolize' is false).

If 'symbolize' flag is not set, we still want to transform virtual address
to module+offset pair in the call to Symbolizer::SymbolizeCode().
See https://code.google.com/p/address-sanitizer/issues/detail?id=251 for
more details.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197491 91177308-0d34-0410-b5e6-96231b3b80d8
Fix gen_dynamic_list.py for Python 3. Patch by Marcoen Hirschberg.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197493 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Introduce print_suppressions flag.

Introduce a flag to either always or never print matched suppressions.
Previously, matched suppressions were printed unconditionally if there were
unsuppressed leaks. Also, verbosity=1 no longer has the semantics of "always
print suppressions and summary".

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197510 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Remove the LSan-specific verbosity flag.

It conflicted with the verbosity flag we had in common flags. We don't need an
LSan-specific flag anyway.

Also, shift some logging levels and remove some unnecessary code.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197512 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Disable DynamoRio detection.

This code is not robust enough and triggers when simply linking with
libdynamorio.so, without any code translation at all. Disabling it is safe
(i.e. we may unpoison too much memory and see false negatives, but never false
positives).


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197568 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizers] Rename Symbolizer::SymbolizeCode to Symbolizer::SymbolizePC

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197569 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Implement Symbolizer class on Windows

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197571 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizers] Fix CL compile-time warning in the symbolizer

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197573 91177308-0d34-0410-b5e6-96231b3b80d8
[DFSan] New custom wrappers

Added the following custom wrappers:
  strstr
  strrchr
  memchr
  nanosleep
  socketpair

Tweaked a couple of existing wrappers: if a wrapper returns a pointers derived
from an input pointer, then return the label of the input pointer

Sorted tests invocation

Differential Revision: D2354

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

It was broken in r197601.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197665 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Get rid of __asan_symbolize function

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197670 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Delete unused StackTrace::PrintStack argument

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197671 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Get rid of ASan-specific functions for printing stack traces

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197672 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Replace wrap_indirect_calls runtime flag with an interface method.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197799 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Wrap indirect calls to REAL(x) in interceptors.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197806 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Add missing file comment.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197807 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Use the new sanitizer_interception.h header in all interceptors.


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