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

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

Issue 2526563002: Add a target to run the SyzyAsan RTL unittests in 4G (Closed)
Patch Set: Address nits. Created 4 years, 1 month 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/shadow.h ('k') | syzygy/agent/asan/static_shadow.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: syzygy/agent/asan/shadow.cc
diff --git a/syzygy/agent/asan/shadow.cc b/syzygy/agent/asan/shadow.cc
index ef70a65c31174865f66687dbc4288567008bd327..ea49a40202347b2859afd07bae90606388dd308b 100644
--- a/syzygy/agent/asan/shadow.cc
+++ b/syzygy/agent/asan/shadow.cc
@@ -95,6 +95,14 @@ inline void AddressToPageMask(const void* address,
} // namespace
+extern "C" {
+// Provides a dummy static shadow memory array. This is simply to be used as
+// a pointer for the probes to be anchored to. If any of the probes referring
+// to this dummy shadow memory are run they will behave badly until they have
+// been patched using 'PatchMemoryInterceptorShadowReferences'.
+uint8_t asan_memory_interceptors_shadow_memory[1] = {};
+}
+
Shadow::Shadow() : own_memory_(false), shadow_(nullptr), length_(0) {
Init(RequiredLength());
}
« no previous file with comments | « syzygy/agent/asan/shadow.h ('k') | syzygy/agent/asan/static_shadow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698