summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--content/common/sandbox_init_win.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/common/sandbox_init_win.cc b/content/common/sandbox_init_win.cc
index 16e3e4a..fe67bda 100644
--- a/content/common/sandbox_init_win.cc
+++ b/content/common/sandbox_init_win.cc
@@ -26,6 +26,11 @@ bool InitializeSandbox(sandbox::SandboxInterfaceInfo* sandbox_info) {
// process to swap its window station. During this time all the UI will be
// broken. This has to run before threads and windows are created.
if (!command_line.HasSwitch(switches::kNoSandbox)) {
+#if defined(ADDRESS_SANITIZER) && defined(OS_WIN)
+ LOG(FATAL) << "AddressSanitizer for Windows doesn't support sandboxing "
+ "yet (http://crbug.com/382867). "
+ "Please rerun with sandbox disabled.";
+#endif
// Precreate the desktop and window station used by the renderers.
sandbox::TargetPolicy* policy = broker_services->CreatePolicy();
sandbox::ResultCode result = policy->CreateAlternateDesktop(true);