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

Unified Diff: src/trusted/validator_arm/testdata/test_stores.S

Issue 8275008: Make validator require read sandboxing on ARM. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 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
Index: src/trusted/validator_arm/testdata/test_stores.S
===================================================================
--- src/trusted/validator_arm/testdata/test_stores.S (revision 6972)
+++ src/trusted/validator_arm/testdata/test_stores.S (working copy)
@@ -55,6 +55,12 @@
nop @ Don't mask, and
str r1, [r0], r2 @ use it in register post-index store: ERROR.
+bundle6:
+ str r1, [sp], #1024 @ post-indexing sp by a constant is OK
+ str r1, [sp], r2 @ post-indexing sp by a register is an ERROR
+ bic r0, r0, #0xC0000000 @ Mask a register, and
+ str r1, [r0, r2] @ use it in register pre-index store: ERROR
+
conditional_sandbox:
tst r0, #0xC0000000 @ Set Z if the top two bits are clear, and
streq r1, [r0] @ store: should work.
« no previous file with comments | « src/trusted/validator_arm/testdata/test_sp_updates.nexe ('k') | src/trusted/validator_arm/testdata/test_stores.err » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698