Pierre Gousseau
183d1368f3
[asan] Add strndup/__strndup interceptors.
...
Recommit of r302781 with Vitaly Buka's fix for non zero terminated strings.
Differential Revision: https://reviews.llvm.org/D31457
llvm-svn: 304399
2017-06-01 09:37:22 +00:00
Daniel Jasper
f97310fb7a
Revert r302781 and subsequent attempts to disable part of it.
...
The Msan unit tests are still broken and by this point, I think we
should start over.
llvm-svn: 303339
2017-05-18 09:31:37 +00:00
Kostya Serebryany
9aa8ef8504
temporary disable stndup interceptor, due to r302781 being buggy
...
llvm-svn: 303324
2017-05-18 03:00:07 +00:00
Pierre Gousseau
0550581070
[asan] Recommit of r301904: Add strndup/__strndup interceptors
...
Fix undeclared __interceptor_malloc in esan_interceptors.cc
Fix undeclared strnlen on OSX
Differential Revision: https://reviews.llvm.org/D31457
llvm-svn: 302781
2017-05-11 08:53:24 +00:00
Pierre Gousseau
1c5550671d
Revert r301904 causing tsan test failure in x86_64-linux-autoconf
...
llvm-svn: 301909
2017-05-02 10:22:05 +00:00
Pierre Gousseau
b7101479a8
[asan] Add strndup/__strndup interceptors if targeting linux.
...
Differential Revision: https://reviews.llvm.org/D31457
llvm-svn: 301904
2017-05-02 09:01:02 +00:00
Viktor Kutuzov
d4c3ffc5bf
[Sanitizers] Intercept snprintf_l() on FreeBSD
...
Differential Revision: http://reviews.llvm.org/D6418
llvm-svn: 224700
2014-12-22 12:29:40 +00:00
Dan Albert
c5d4bc7581
Fix checks for Android.
...
__ANDROID__ is a define that comes from the toolchain when building
for Android targets. ANDROID has a different meaning. ANDROID is
defined for _every_ Android build, including those done for host
modules. For host modules, we want to build the regular Linux
sanitizers and builtins, not the one for Android devices. This hasn't
been a problem until now because we only just started building the
sanitizers for the host.
llvm-svn: 220203
2014-10-20 15:35:01 +00:00
Dan Albert
1c71fde161
Exclude Android from the tests for valloc/pvalloc.
...
These functions are being removed from Android because they were removed
from POSIX 2004.
llvm-svn: 210962
2014-06-14 00:50:03 +00:00
Timur Iskhodzhanov
339e8c98f8
[Sanitizer tests] Add sanitizer_test_config.h to make the inclusion of gtest.h conditional
...
Reviewed at http://reviews.llvm.org/D3744
llvm-svn: 208696
2014-05-13 13:25:12 +00:00
Timur Iskhodzhanov
711269966c
[Sanitizer tests] Make simple pthread tests compile and pass on Windows
...
Reviewed at http://reviews.llvm.org/D3725
llvm-svn: 208674
2014-05-13 08:07:09 +00:00
Timur Iskhodzhanov
1ac44dd087
[Sanitizer tests] Fix a comment that got out of sync with the #if
...
llvm-svn: 208602
2014-05-12 17:33:00 +00:00
Timur Iskhodzhanov
9a205ed8ee
[ASan tests] Use the proper attribute on RunStrChrTest helper functions to avoid "unused function" warnings
...
llvm-svn: 208568
2014-05-12 14:31:57 +00:00
Timur Iskhodzhanov
76f43eecb0
[ASan] Update sanitizer_common and asan test_util headers to support building on Windows
...
llvm-svn: 208306
2014-05-08 12:43:33 +00:00
Alexey Samsonov
fefeecc7b0
[ASan] Better way to disable tests for functions unavailable on certain platforms
...
llvm-svn: 203224
2014-03-07 09:39:01 +00:00
Alexey Samsonov
16516b9b00
Migrate ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS to new spelling - ATTRIBUTE_NO_SANITIZE_ADDRESS
...
llvm-svn: 190136
2013-09-06 11:07:33 +00:00
Kostya Serebryany
c98cddd024
[asan] guard ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS definition with an #ifndef
...
llvm-svn: 176175
2013-02-27 08:28:24 +00:00
Kostya Serebryany
c8ac15a66b
[asan] use the new attribute syntax (no_address_safety_analysis => no_sanitize_address)
...
llvm-svn: 176077
2013-02-26 07:01:06 +00:00
Evgeniy Stepanov
99d91289b6
Move large part of asan_test_utils.h to sanitizer_common.
...
Move my_rand() to the common header.
This lets us avoid the use of rand_r in sanitizer_common tests.
There is no rand_r on Android.
llvm-svn: 172421
2013-01-14 15:12:26 +00:00