x86: on self-modifying code, generate JIT code until end of block. this fixes issue #266

This commit is contained in:
Nguyen Anh Quynh
2015-11-16 21:55:42 +08:00
parent 331154551e
commit edaea7020b
3 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@ int main(int argc, char **argv, char **envp) {
uc_hook hook;
uc_hook_add(uc, &hook, UC_HOOK_BLOCK, hook_block, NULL, (uint64_t)1, (uint64_t)0);
printf("uc_emu_start(…)\n");
uc_emu_start(uc, STARTING_ADDRESS, STARTING_ADDRESS + sizeof(BINARY) - 1, 0, 0);
uc_emu_start(uc, STARTING_ADDRESS, STARTING_ADDRESS + sizeof(BINARY) - 1, 0, 20);
printf("done\n");
return 0;
}