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

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

Issue 10024039: Replace kind variable from validator API with Boolean stubout parameter. (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_validate_image.c
diff --git a/src/trusted/service_runtime/sel_validate_image.c b/src/trusted/service_runtime/sel_validate_image.c
index 02072b20d5965b127c859746ccbf372c473fdb08..8468ad9a7ef478ff978c8483d02378addef88fa9 100644
--- a/src/trusted/service_runtime/sel_validate_image.c
+++ b/src/trusted/service_runtime/sel_validate_image.c
@@ -71,9 +71,9 @@ int NaClValidateCode(struct NaClApp *nap, uintptr_t guest_addr,
NACL_TARGET_ARCH,
NACL_TARGET_SUBARCH)(
sb_kind,
- NaClApplyValidationDoStubout,
guest_addr, data, size,
nap->bundle_size,
+ TRUE, /* stub out */
FALSE, /* text is not read-only */
&nap->cpu_features,
cache);
@@ -83,9 +83,10 @@ int NaClValidateCode(struct NaClApp *nap, uintptr_t guest_addr,
NACL_TARGET_ARCH,
NACL_TARGET_SUBARCH)(
sb_kind,
- NaClApplyCodeValidation,
guest_addr, data, size,
nap->bundle_size,
+ FALSE, /* do not stub out */
+ /* fixed feature cpu mode implies read-only*/
Mark Seaborn 2012/04/10 00:57:38 Space before '*/' I'd split this into a local var
Nick Bray (chromium) 2012/04/10 18:49:20 Done.
nap->fixed_feature_cpu_mode,
&nap->cpu_features,
cache);

Powered by Google App Engine
This is Rietveld 408576698