Undo the disaster that was the patch to unicorn github issue #266 and fix it correctly. makes normal self-modifying code work.
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
#include <unicorn/unicorn.h>
|
||||
|
||||
static void hook_block(uc_engine *uc, uint64_t address, uint32_t size, void *user_data) {
|
||||
printf("hook_block(…)\n");
|
||||
printf("hook_block(%p, %lx, %d, %p)\n", uc, address, size, user_data);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user