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

Unified Diff: syzygy/agent/asan/memory_interceptors.cc

Issue 2316303008: Add probes for x64. (Closed)
Patch Set: Rebase on the current master. 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 | « syzygy/agent/asan/memory_interceptors.h ('k') | syzygy/agent/asan/memory_interceptors_impl_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: syzygy/agent/asan/memory_interceptors.cc
diff --git a/syzygy/agent/asan/memory_interceptors.cc b/syzygy/agent/asan/memory_interceptors.cc
index b5f34a76b199b9de1289ef607e3af909303a9bbc..34dcdd43b1a1e429ca83149094a34457e763cd33 100644
--- a/syzygy/agent/asan/memory_interceptors.cc
+++ b/syzygy/agent/asan/memory_interceptors.cc
@@ -43,6 +43,7 @@ Shadow* SetMemoryInterceptorShadow(Shadow* shadow) {
}
const MemoryAccessorVariants kMemoryAccessorVariants[] = {
+#ifndef _WIN64
#define ENUM_MEM_INTERCEPT_FUNCTION_VARIANTS(access_size, access_mode_str, \
access_mode_value) \
{ "asan_check_" #access_size "_byte_" #access_mode_str, \
@@ -55,11 +56,19 @@ const MemoryAccessorVariants kMemoryAccessorVariants[] = {
asan_no_check, \
asan_check_##access_size##_byte_##access_mode_str##_no_flags_2gb, \
asan_check_##access_size##_byte_##access_mode_str##_no_flags_4gb},
+#else
+#define ENUM_MEM_INTERCEPT_FUNCTION_VARIANTS(access_size, access_mode_str, \
+ access_mode_value) \
+ { "asan_check_" #access_size "_byte_" #access_mode_str}, \
+ { "asan_check_" #access_size "_byte_" #access_mode_str "_no_flags", \
+ asan_no_check},
+#endif
ASAN_MEM_INTERCEPT_FUNCTIONS(ENUM_MEM_INTERCEPT_FUNCTION_VARIANTS)
#undef ENUM_MEM_INTERCEPT_FUNCTION_VARIANTS
+#ifndef _WIN64
#define ENUM_STRING_INTERCEPT_FUNCTION_VARIANTS( \
func, prefix, counter, dst_mode, src_mode, access_size, compare) \
{ "asan_check" #prefix #access_size "_byte_" #func "_access", \
@@ -72,6 +81,7 @@ const MemoryAccessorVariants kMemoryAccessorVariants[] = {
ASAN_STRING_INTERCEPT_FUNCTIONS(ENUM_STRING_INTERCEPT_FUNCTION_VARIANTS)
#undef ENUM_STRING_INTERCEPT_FUNCTION_VARIANTS
+#endif
};
const size_t kNumMemoryAccessorVariants = arraysize(kMemoryAccessorVariants);
« no previous file with comments | « syzygy/agent/asan/memory_interceptors.h ('k') | syzygy/agent/asan/memory_interceptors_impl_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698