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

Unified Diff: src/trusted/validator_ragel/dfa_validate_32.c

Issue 1276543006: Experimental: Bundle revalidation inside user callback Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Fix error checking Created 5 years, 4 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/validator_ragel/dfa_validate_32.c
diff --git a/src/trusted/validator_ragel/dfa_validate_32.c b/src/trusted/validator_ragel/dfa_validate_32.c
index bdbe510a5745417d872ceb43a56ff5b50317dd13..6b06167e8d32b9b82f877dd18ca1a6810b19776b 100644
--- a/src/trusted/validator_ragel/dfa_validate_32.c
+++ b/src/trusted/validator_ragel/dfa_validate_32.c
@@ -40,8 +40,12 @@ NaClValidationStatus ApplyDfaValidator_x86_32(
enum NaClValidationStatus status = NaClValidationFailed;
void *query = NULL;
struct StubOutCallbackData callback_data;
+
callback_data.flags = flags;
callback_data.did_rewrite = 0;
+ callback_data.chunk_processed_as_a_contiguous_stream = 0;
+ callback_data.bundle_begin_offset = (intptr_t) data & kBundleMask;
+ callback_data.cpu_features = cpu_features;
UNREFERENCED_PARAMETER(guest_addr);
if (stubout_mode)
@@ -79,6 +83,7 @@ NaClValidationStatus ApplyDfaValidator_x86_32(
&callback_data))
status = NaClValidationSucceeded;
}
+
if (status != NaClValidationSucceeded && errno == ENOMEM)
status = NaClValidationFailedOutOfMemory;
« no previous file with comments | « src/trusted/validator/validation_rewrite_64_test_data.S ('k') | src/trusted/validator_ragel/dfa_validate_64.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698