diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-09-06 11:07:33 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-09-06 11:07:33 +0000 |
commit | f7f2e431263cc0aa321218ce8978b289187a39a3 (patch) | |
tree | daeae78368d818e824887d83838801814006ab26 | |
parent | bd33d3ab168fcbcfe09a3fd6a971994b481e89d0 (diff) |
Migrate ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS to new spelling - ATTRIBUTE_NO_SANITIZE_ADDRESS
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190136 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/asan/tests/asan_test.cc | 8 | ||||
-rw-r--r-- | lib/sanitizer_common/tests/sanitizer_test_utils.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/asan/tests/asan_test.cc b/lib/asan/tests/asan_test.cc index c216b6839..292cfdb83 100644 --- a/lib/asan/tests/asan_test.cc +++ b/lib/asan/tests/asan_test.cc @@ -1081,15 +1081,15 @@ TEST(AddressSanitizer, LargeStructCopyTest) { *Ident(&a) = *Ident(&a); } -ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS -static void NoAddressSafety() { +ATTRIBUTE_NO_SANITIZE_ADDRESS +static void NoSanitizeAddress() { char *foo = new char[10]; Ident(foo)[10] = 0; delete [] foo; } -TEST(AddressSanitizer, AttributeNoAddressSafetyTest) { - Ident(NoAddressSafety)(); +TEST(AddressSanitizer, AttributeNoSanitizeAddressTest) { + Ident(NoSanitizeAddress)(); } // It doesn't work on Android, as calls to new/delete go through malloc/free. diff --git a/lib/sanitizer_common/tests/sanitizer_test_utils.h b/lib/sanitizer_common/tests/sanitizer_test_utils.h index a770d0fbd..17adb2647 100644 --- a/lib/sanitizer_common/tests/sanitizer_test_utils.h +++ b/lib/sanitizer_common/tests/sanitizer_test_utils.h @@ -36,14 +36,14 @@ typedef __int64 int64_t; #define __has_feature(x) 0 #endif -#ifndef ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS +#ifndef ATTRIBUTE_NO_SANITIZE_ADDRESS # if __has_feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__) -# define ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS \ +# define ATTRIBUTE_NO_SANITIZE_ADDRESS \ __attribute__((no_sanitize_address)) # else -# define ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS +# define ATTRIBUTE_NO_SANITIZE_ADDRESS # endif -#endif // ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS +#endif // ATTRIBUTE_NO_SANITIZE_ADDRESS #if __LP64__ || defined(_WIN64) # define SANITIZER_WORDSIZE 64 |