summaryrefslogtreecommitdiffstats
path: root/content/common/sandbox_init_win.cc
diff options
context:
space:
mode:
authortimurrrr <timurrrr@chromium.org>2014-10-06 19:23:36 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-07 02:24:09 +0000
commit0afa56e71fee5fcdd5292879ce5f43f70302e351 (patch)
tree9c9153ff1b20a3d60486aa1744827ad39dcb350e /content/common/sandbox_init_win.cc
parentc57b428d491f1b9a27bd352f3e11fe304b101e2a (diff)
downloadchromium_src-0afa56e71fee5fcdd5292879ce5f43f70302e351.zip
chromium_src-0afa56e71fee5fcdd5292879ce5f43f70302e351.tar.gz
chromium_src-0afa56e71fee5fcdd5292879ce5f43f70302e351.tar.bz2
Add LOG(FATAL) when running ASan/Win builds with sandbox enabled
BUG=382867 Review URL: https://codereview.chromium.org/626923002 Cr-Commit-Position: refs/heads/master@{#298329}
Diffstat (limited to 'content/common/sandbox_init_win.cc')
-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);