Fix segfault-on-emu_stop() bug.
This commit is contained in:
2
uc.c
2
uc.c
@ -525,8 +525,10 @@ uc_err uc_emu_stop(uc_engine *uc)
|
|||||||
return UC_ERR_OK;
|
return UC_ERR_OK;
|
||||||
|
|
||||||
uc->stop_request = true;
|
uc->stop_request = true;
|
||||||
|
if (uc->current_cpu) {
|
||||||
// exit the current TB
|
// exit the current TB
|
||||||
cpu_exit(uc->current_cpu);
|
cpu_exit(uc->current_cpu);
|
||||||
|
}
|
||||||
|
|
||||||
return UC_ERR_OK;
|
return UC_ERR_OK;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user