| 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,
|
|
|