OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WTF_AddressSanitizer_h | 5 #ifndef WTF_AddressSanitizer_h |
6 #define WTF_AddressSanitizer_h | 6 #define WTF_AddressSanitizer_h |
7 | 7 |
8 // TODO(sof): Add SyZyASan support? | 8 // TODO(sof): Add SyZyASan support? |
9 #if defined(ADDRESS_SANITIZER) | 9 #if defined(ADDRESS_SANITIZER) |
10 #include <sanitizer/asan_interface.h> | 10 #include <sanitizer/asan_interface.h> |
(...skipping 20 matching lines...) Expand all Loading... |
31 #if ENABLE(LAZY_SWEEPING) | 31 #if ENABLE(LAZY_SWEEPING) |
32 #define NO_LAZY_SWEEP_SANITIZE_ADDRESS NO_SANITIZE_ADDRESS | 32 #define NO_LAZY_SWEEP_SANITIZE_ADDRESS NO_SANITIZE_ADDRESS |
33 #else | 33 #else |
34 #define NO_LAZY_SWEEP_SANITIZE_ADDRESS | 34 #define NO_LAZY_SWEEP_SANITIZE_ADDRESS |
35 #endif | 35 #endif |
36 #else | 36 #else |
37 #define NO_SANITIZE_ADDRESS | 37 #define NO_SANITIZE_ADDRESS |
38 #define NO_LAZY_SWEEP_SANITIZE_ADDRESS | 38 #define NO_LAZY_SWEEP_SANITIZE_ADDRESS |
39 #endif | 39 #endif |
40 | 40 |
| 41 #if defined(MEMORY_SANITIZER) && (!OS(WIN) || COMPILER(CLANG)) |
| 42 #define NO_SANITIZE_MEMORY __attribute__((no_sanitize_memory)) |
| 43 #else |
| 44 #define NO_SANITIZE_MEMORY |
| 45 #endif |
| 46 |
41 #endif // WTF_AddressSanitizer_h | 47 #endif // WTF_AddressSanitizer_h |
OLD | NEW |