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

Unified Diff: src/base/macros.h

Issue 1196483003: Disable cfi-unrelated-cast sanitizer in OpParameter function. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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 | src/compiler/operator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/macros.h
diff --git a/src/base/macros.h b/src/base/macros.h
index e98b4f569f2bab5bc91d691293089b12254ce157..2baba262d17ebf408c7828f121eb33e38b0f8ec2 100644
--- a/src/base/macros.h
+++ b/src/base/macros.h
@@ -273,6 +273,16 @@ V8_INLINE Dest bit_cast(Source const& source) {
#define DISABLE_ASAN
#endif
+#if defined(__has_attribute)
+#if __has_attribute(no_sanitize)
+#define DISABLE_CFI_UNRELATED_CAST \
+ __attribute__((no_sanitize("cfi-unrelated-cast")))
+#else
+#define DISABLE_CFI_UNRELATED_CAST
+#endif
+#else
+#define DISABLE_CFI_UNRELATED_CAST
+#endif
#if V8_CC_GNU
#define V8_IMMEDIATE_CRASH() __builtin_trap()
« no previous file with comments | « no previous file | src/compiler/operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698