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

Unified Diff: src/trusted/service_runtime/web_worker_stub.c

Issue 3539011: Enable check for DEP / NX page protection (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Modify windows check to use Noel's signal interface Created 10 years, 2 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 | « src/trusted/service_runtime/sel_main_chrome.c ('k') | tests/fake_browser/nacl.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/service_runtime/web_worker_stub.c
===================================================================
--- src/trusted/service_runtime/web_worker_stub.c (revision 3470)
+++ src/trusted/service_runtime/web_worker_stub.c (working copy)
@@ -27,6 +27,7 @@
#include "native_client/src/shared/srpc/nacl_srpc.h"
#include "native_client/src/trusted/desc/nacl_desc_imc.h"
+#include "native_client/src/trusted/platform_qualify/nacl_dep_qualify.h"
#include "native_client/src/trusted/platform_qualify/nacl_os_qualify.h"
#include "native_client/src/trusted/service_runtime/nacl_globals.h"
@@ -142,6 +143,12 @@
goto done;
}
/*
+ * Ensure this platform has Data Execution Prevention enabled.
+ */
+ if (!NaClCheckDEP()) {
+ goto done;
+ }
+ /*
* Load the NaCl module from the memory file.
*/
if (LOAD_OK != NaClAppLoadFile((struct Gio *) &gf,
« no previous file with comments | « src/trusted/service_runtime/sel_main_chrome.c ('k') | tests/fake_browser/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698