| Index: webrtc/base/sanitizer.h
|
| diff --git a/webrtc/base/sanitizer.h b/webrtc/base/sanitizer.h
|
| index 3327e08f7dcb1d68bebb07dbde5af0356741bf9b..e27a692164ad1b9b8570ad572e05599f7241e624 100644
|
| --- a/webrtc/base/sanitizer.h
|
| +++ b/webrtc/base/sanitizer.h
|
| @@ -33,6 +33,15 @@
|
| #include <sanitizer/msan_interface.h>
|
| #endif
|
|
|
| +#ifdef __has_attribute
|
| +#if __has_attribute(no_sanitize)
|
| +#define RTC_NO_SANITIZE(what) __attribute__((no_sanitize(what)))
|
| +#endif
|
| +#endif
|
| +#ifndef RTC_NO_SANITIZE
|
| +#define RTC_NO_SANITIZE(what)
|
| +#endif
|
| +
|
| // Ask ASan to mark the memory range [ptr, ptr + element_size * num_elements)
|
| // as being unaddressable, so that reads and writes are not allowed. ASan may
|
| // narrow the range to the nearest alignment boundaries.
|
|
|