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

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: Fix nit 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') | no next file with comments »
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..bc9390e53d607528b976ee13c2e081c3bfe8fbd8 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.
@@ -39,7 +39,7 @@ BASE_EXPORT NOINLINE void AsanCorruptHeapBlock();
// crash occur.
BASE_EXPORT NOINLINE void AsanCorruptHeap();
-#endif // SYZYASAN
+#endif // SYZYASAN && COMPILER_MSVC
} // namespace debug
} // namespace base
« no previous file with comments | « no previous file | base/debug/asan_invalid_access.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698