Exit early when invalid read happens

In this way, the target register won't be overwritten
This commit is contained in:
mio
2022-10-20 21:57:28 +02:00
parent e5756b79f8
commit 3ea7857be3
2 changed files with 12 additions and 1 deletions

View File

@@ -366,7 +366,7 @@ static void test_arm64_block_invalid_mem_read_write_sync(void)
OK(uc_reg_read(uc, UC_ARM64_REG_X1, &r_x1));
TEST_CHECK(r_pc == code_start + 8);
// TEST_CHECK(r_x0 == 1); // Unfortunately this can't be guarantee-ed
TEST_CHECK(r_x0 == 1);
TEST_CHECK(r_x1 == 2);
OK(uc_close(uc));