[sanitizer] Fix Android build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175503 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Fix ReExec on linux.

execle(argv[0], ...) is wrong, because argv[0] may contain a PATH-resolvable
program name. Execute /proc/self/exe instead.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175504 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] instrument memory accesses with unusual sizes
This patch makes asan instrument memory accesses with unusual sizes (e.g. 5 bytes or 10 bytes), e.g. long double or
packed structures.
Instrumentation is done with two 1-byte checks
(first and last bytes) and if the error is found
__asan_report_load_n(addr, real_size) or
__asan_report_store_n(addr, real_size)
is called.

asan-rt part

Also fix lint.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175508 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Use slow stack unwinder in UMR reports.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175510 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Allow runtime flags be separated by colon as well as space

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175511 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Allow ASan default runtime options be overriden at compile time by providing ASAN_DEFAULT_OPTIONS macro

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175512 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Slightly lower allocator test memory consumption.

This way it fits on a random 1G device.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175513 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] don't run the long double test if long double is the same as double

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175514 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Fix FileOps test on Android.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175515 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] add test throw_call_test (broken with -static-libstdc++)

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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175615 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] add a lit test for invoke-with-no-return instrumentation

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175618 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] use raw syscall instead of _exit() function on Linux

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175622 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] on linux, run __asan_init from .preinit_array (even earlier than before)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175623 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] move preinit_test to Linux since on Mac __asan_init is called from ld-preload-ed runtime

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175625 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Make isoc99_*scanf intercepted on Linux only. Those are unavailable on Darwin.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175629 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Delete asan/dynamic dir and temporarily move the interposers declarations to asan_intercepted_functions.h
Now that we have only one dependency on asan_intercepted_functions.h, we can unite that code with the interceptors declarations in asan_interceptors.cc and get rid of asan_intercepted_functions.h


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175631 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] revert part of r175631 that looks like accidental commit

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175655 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Try to fix infinite loop in frame pointer unwinder

Using > instead of >= ensures that each frame deref makes progress and
that we eventually terminate.

Issue: https://code.google.com/p/address-sanitizer/issues/detail?id=162

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175661 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] speedup by more than 2x handling of the small memset/memcpy/etc calls

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