Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(642)

Unified Diff: webrtc/base/sanitizer.h

Issue 2318083002: VadCore: Allow signed multiplication overflow that we don't know how to fix (Closed)
Patch Set: Handle compilers that define __clang__ but don't have the no_sanitize attribute Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/common_audio/vad/vad_core.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | webrtc/common_audio/vad/vad_core.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698