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

Unified Diff: src/trusted/validator_arm/validator_tests.cc

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/validator_tests.cc
===================================================================
--- src/trusted/validator_arm/validator_tests.cc (revision 6916)
+++ src/trusted/validator_arm/validator_tests.cc (working copy)
@@ -1,7 +1,7 @@
/*
- * Copyright 2010 The Native Client Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can
- * be found in the LICENSE file.
+ * Copyright (c) 2011 The Native Client Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
*/
/*
@@ -422,7 +422,7 @@
EXPECT_EQ(nacl_arm_dec::MAY_BE_SAFE, first.safety)
<< "Store should not be unsafe even though mask is bogus: "
<< message.str();
- EXPECT_EQ(nacl::string(nacl_arm_val::kProblemUnsafeStore),
+ EXPECT_EQ(nacl::string(nacl_arm_val::kProblemUnsafeLoadStore),
first.problem_code)
<< message;
}
@@ -476,7 +476,7 @@
EXPECT_EQ(nacl_arm_dec::MAY_BE_SAFE, first.safety)
<< "Store should not be unsafe even though guard is bogus: "
<< message.str();
- EXPECT_EQ(nacl::string(nacl_arm_val::kProblemUnsafeStore),
+ EXPECT_EQ(nacl::string(nacl_arm_val::kProblemUnsafeLoadStore),
first.problem_code)
<< message;
}
@@ -529,11 +529,11 @@
<< message.str();
/*
- * Note that we expect kProblemUnsafe, *not* kProblemUnsafeStore. This
- * is because the store instructions themselves, in isolation, are
- * unsafe to appear anywhere in a Native Client program -- whereas
- * kProblemUnsafeStore indicates a legitimate store used in an unsafe
- * manner.
+ * Note that we expect kProblemUnsafe, *not* kProblemUnsafeLoadStore.
+ * This is because the load/store instructions themselves, in
+ * isolation, are unsafe to appear anywhere in a Native Client
+ * program -- whereas kProblemUnsafeLoadStore indicates a legitimate
+ * load/store used in an unsafe manner.
jasonwkim 2011/10/13 23:05:41 Do we have any tests that verify read sandboxing i
*/
EXPECT_EQ(nacl::string(nacl_arm_val::kProblemUnsafe),
first.problem_code)

Powered by Google App Engine
This is Rietveld 408576698