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

Unified Diff: base/debug/asan_invalid_access.h

Issue 433493002: Hide some SyzyASan specific code behind an '#if defined(COMPILER_MSVC)'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 | base/debug/asan_invalid_access.cc » ('j') | base/debug/asan_invalid_access.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/asan_invalid_access.h
diff --git a/base/debug/asan_invalid_access.h b/base/debug/asan_invalid_access.h
index 65519878f12a707fe67d04826917d0cdf613fcd5..839a13930ae0ea806785b809d3386c6f5f0ac5a5 100644
--- a/base/debug/asan_invalid_access.h
+++ b/base/debug/asan_invalid_access.h
@@ -29,7 +29,7 @@ BASE_EXPORT NOINLINE void AsanHeapUseAfterFree();
// The "corrupt-block" and "corrupt-heap" classes of bugs is specific to
// SyzyASan.
-#if defined(SYZYASAN)
+#if defined(SYZYASAN) && defined(COMPILER_MSVC)
// Corrupts a memory block and makes sure that the corruption gets detected when
// we try to free this block.
« no previous file with comments | « no previous file | base/debug/asan_invalid_access.cc » ('j') | base/debug/asan_invalid_access.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698