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

Unified Diff: sandbox/win/src/process_mitigations.cc

Issue 12207106: Ignore DEP and SEHOP flags on Win64 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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
« content/common/sandbox_policy.cc ('K') | « content/common/sandbox_policy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/process_mitigations.cc
===================================================================
--- sandbox/win/src/process_mitigations.cc (revision 181659)
+++ sandbox/win/src/process_mitigations.cc (working copy)
@@ -191,6 +191,8 @@
if (version <= base::win::VERSION_VISTA)
return;
+ // DEP and SEHOP are not valid for 64-bit Windows
+#if !defined(_WIN64)
cpu_(ooo_6.6-7.5) 2013/02/11 19:05:09 I don't like the silent ignore. in sandbox_policy_
jschuh 2013/02/11 21:26:49 But it's ignored because the OS is already enforci
if (flags & MITIGATION_DEP) {
*policy_flags |= PROCESS_CREATION_MITIGATION_POLICY_DEP_ENABLE;
if (!(flags & MITIGATION_DEP_NO_ATL_THUNK))
@@ -199,6 +201,7 @@
if (flags & MITIGATION_SEHOP)
*policy_flags |= PROCESS_CREATION_MITIGATION_POLICY_SEHOP_ENABLE;
+#endif
// Win 7
if (version < base::win::VERSION_WIN8)
« content/common/sandbox_policy.cc ('K') | « content/common/sandbox_policy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698