regress: fix nr_mem_test.c and ro_mem_test.c to use modified UC_MEM_* enum
This commit is contained in:
parent
7ceb2eb0b9
commit
2cdadf1720
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user