add permissions to map_ptr api

This commit is contained in:
Ryan Hileman
2015-11-28 01:36:11 -08:00
parent f4882ae1a2
commit 230cbd5330
9 changed files with 21 additions and 17 deletions

View File

@ -256,7 +256,7 @@ static void test_i386_map_ptr(void)
return;
}
uc_mem_map_ptr(uc, ADDRESS, 2 * 1024 * 1024, mem);
uc_mem_map_ptr(uc, ADDRESS, 2 * 1024 * 1024, UC_PROT_ALL, mem);
// write machine code to be emulated to memory
if (!memcpy(mem, X86_CODE32, sizeof(X86_CODE32) - 1)) {