Fix a bug when nested uc_emu_start deletes a hook
This commit is contained in:
7
uc.c
7
uc.c
@@ -847,10 +847,11 @@ uc_err uc_emu_start(uc_engine *uc, uint64_t begin, uint64_t until,
|
|||||||
// or we may lost uc_emu_stop
|
// or we may lost uc_emu_stop
|
||||||
if (uc->nested_level == 0) {
|
if (uc->nested_level == 0) {
|
||||||
uc->emulation_done = true;
|
uc->emulation_done = true;
|
||||||
}
|
|
||||||
|
|
||||||
// remove hooks to delete
|
// remove hooks to delete
|
||||||
clear_deleted_hooks(uc);
|
// make sure we delete all hooks at the first level.
|
||||||
|
clear_deleted_hooks(uc);
|
||||||
|
}
|
||||||
|
|
||||||
if (timeout) {
|
if (timeout) {
|
||||||
// wait for the timer to finish
|
// wait for the timer to finish
|
||||||
|
|||||||
Reference in New Issue
Block a user