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

Unified Diff: syzygy/agent/asan/rtl_unittest.cc

Issue 2321423002: Merge the latest changes to master in the vs2015 branch. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « syzygy/agent/asan/memory_interceptors.h ('k') | syzygy/agent/asan/syzyasan_rtl.def.template » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: syzygy/agent/asan/rtl_unittest.cc
diff --git a/syzygy/agent/asan/rtl_unittest.cc b/syzygy/agent/asan/rtl_unittest.cc
index c6583abca23a9faa52b62a4b30982af52b328c95..ae6bdcf8e162c058f808c96639f74f6762df888f 100644
--- a/syzygy/agent/asan/rtl_unittest.cc
+++ b/syzygy/agent/asan/rtl_unittest.cc
@@ -466,11 +466,10 @@ TEST_F(AsanRtlTest, AsanSingleStoInstructionCheckBadAccess) {
}
TEST_F(AsanRtlTest, AsanPrefixedSpecialInstructionCheckGoodAccess) {
- static const char* function_names[] = {
- "asan_check_repz_4_byte_movs_access",
- "asan_check_repz_4_byte_cmps_access",
- "asan_check_repz_4_byte_stos_access"
- };
+ static const char* function_names[] = {"asan_check_repz_4_byte_lods_access",
+ "asan_check_repz_4_byte_movs_access",
+ "asan_check_repz_4_byte_cmps_access",
+ "asan_check_repz_4_byte_stos_access"};
// Allocate memory space.
AllocMemoryBuffers(kAllocSize, sizeof(uint32_t));
@@ -493,11 +492,10 @@ TEST_F(AsanRtlTest, AsanPrefixedSpecialInstructionCheckGoodAccess) {
}
TEST_F(AsanRtlTest, AsanPrefixedSpecialInstructionCheckBadAccess) {
- static const char* function_names[] = {
- "asan_check_repz_4_byte_movs_access",
- "asan_check_repz_4_byte_cmps_access",
- "asan_check_repz_4_byte_stos_access"
- };
+ static const char* function_names[] = {"asan_check_repz_4_byte_lods_access",
+ "asan_check_repz_4_byte_movs_access",
+ "asan_check_repz_4_byte_cmps_access",
+ "asan_check_repz_4_byte_stos_access"};
// Allocate memory space.
AllocMemoryBuffers(kAllocSize, sizeof(uint32_t));
@@ -526,11 +524,10 @@ TEST_F(AsanRtlTest, AsanPrefixedSpecialInstructionCheckBadAccess) {
}
TEST_F(AsanRtlTest, AsanDirectionSpecialInstructionCheckGoodAccess) {
- static const char* function_names[] = {
- "asan_check_repz_4_byte_movs_access",
- "asan_check_repz_4_byte_cmps_access",
- "asan_check_repz_4_byte_stos_access"
- };
+ static const char* function_names[] = {"asan_check_repz_4_byte_lods_access",
+ "asan_check_repz_4_byte_movs_access",
+ "asan_check_repz_4_byte_cmps_access",
+ "asan_check_repz_4_byte_stos_access"};
// Allocate memory space.
AllocMemoryBuffers(kAllocSize, sizeof(uint32_t));
@@ -555,17 +552,18 @@ TEST_F(AsanRtlTest, AsanDirectionSpecialInstructionCheckGoodAccess) {
}
TEST_F(AsanRtlTest, AsanSpecialInstructionCheckZeroAccess) {
- static const char* function_names[] = {
- "asan_check_repz_1_byte_movs_access",
- "asan_check_repz_1_byte_cmps_access",
- "asan_check_repz_1_byte_stos_access",
- "asan_check_repz_2_byte_movs_access",
- "asan_check_repz_2_byte_cmps_access",
- "asan_check_repz_2_byte_stos_access",
- "asan_check_repz_4_byte_movs_access",
- "asan_check_repz_4_byte_cmps_access",
- "asan_check_repz_4_byte_stos_access"
- };
+ static const char* function_names[] = {"asan_check_repz_1_byte_lods_access",
+ "asan_check_repz_1_byte_movs_access",
+ "asan_check_repz_1_byte_cmps_access",
+ "asan_check_repz_1_byte_stos_access",
+ "asan_check_repz_2_byte_lods_access",
+ "asan_check_repz_2_byte_movs_access",
+ "asan_check_repz_2_byte_cmps_access",
+ "asan_check_repz_2_byte_stos_access",
+ "asan_check_repz_4_byte_lods_access",
+ "asan_check_repz_4_byte_movs_access",
+ "asan_check_repz_4_byte_cmps_access",
+ "asan_check_repz_4_byte_stos_access"};
// Allocate memory space.
AllocMemoryBuffers(kAllocSize, sizeof(uint32_t));
@@ -590,6 +588,7 @@ TEST_F(AsanRtlTest, AsanSpecialInstructionCheckZeroAccess) {
TEST_F(AsanRtlTest, AsanSpecialInstructionCheckShortcutAccess) {
static const char* function_names[] = {
+ "asan_check_repz_1_byte_lods_access",
"asan_check_repz_1_byte_cmps_access",
"asan_check_repz_2_byte_cmps_access",
"asan_check_repz_4_byte_cmps_access",
« no previous file with comments | « syzygy/agent/asan/memory_interceptors.h ('k') | syzygy/agent/asan/syzyasan_rtl.def.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698