regress: fix nr_mem_test.c and ro_mem_test.c to use modified UC_MEM_* enum

This commit is contained in:
Nguyen Anh Quynh 2015-09-04 11:04:13 +08:00
parent 7ceb2eb0b9
commit 2cdadf1720
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ static bool hook_mem_invalid(ucengine *uc, uc_mem_type type,
default:
// return false to indicate we want to stop emulation
return false;
case UC_MEM_READ_NR:
case UC_MEM_READ_PROT:
printf(">>> non-readable memory is being read at 0x%"PRIx64 ", data size = %u\n",
address, size);
return false;

View File

@ -81,7 +81,7 @@ static bool hook_mem_invalid(ucengine *uc, uc_mem_type type,
printf(">>> Missing memory is being WRITTEN at 0x%"PRIx64 ", data size = %u, data value = 0x%"PRIx64 "\n",
address, size, value);
return false;
case UC_MEM_WRITE_NW:
case UC_MEM_WRITE_PROT:
printf(">>> RO memory is being WRITTEN at 0x%"PRIx64 ", data size = %u, data value = 0x%"PRIx64 "\n",
address, size, value);
return false;