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

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

Issue 10070010: validator_ragel: Link into TCB, use under env var (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: . Created 8 years, 8 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
Index: src/trusted/service_runtime/sel_main_chrome.c
diff --git a/src/trusted/service_runtime/sel_main_chrome.c b/src/trusted/service_runtime/sel_main_chrome.c
index 1ed3492c9a0501e726fde03300eade814e289336..f60b6ad82b3c7d34871454d51cbdc6a08ffa35cc 100644
--- a/src/trusted/service_runtime/sel_main_chrome.c
+++ b/src/trusted/service_runtime/sel_main_chrome.c
@@ -49,6 +49,7 @@ struct NaClChromeMainArgs *NaClChromeMainArgsCreate(void) {
args->broker_duplicate_handle_func = NULL;
args->attach_debug_exception_handler_func = NULL;
#endif
+ args->enable_dfa_validator = 0;
return args;
}
@@ -130,6 +131,11 @@ void NaClChromeMainStart(struct NaClChromeMainArgs *args) {
NaClSetBrokerDuplicateHandleFunc(args->broker_duplicate_handle_func);
#endif
+ if (args->enable_dfa_validator) {
+ fprintf(stderr, "DANGER! USING THE UNSTABLE DFA VALIDATOR!\n");
+ nap->enable_dfa_validator = 1;
+ }
+
NaClAppInitialDescriptorHookup(nap);
/*

Powered by Google App Engine
This is Rietveld 408576698