A stronger test and handle addr_end = 0

This commit is contained in:
lazymio
2021-10-31 21:01:55 +01:00
parent 4bcf1c4a7c
commit 84abf1d3a4
4 changed files with 27 additions and 11 deletions

6
uc.c
View File

@ -639,6 +639,12 @@ uc_err uc_emu_start(uc_engine *uc, uint64_t begin, uint64_t until,
uc->timed_out = false;
uc->first_tb = true;
// In this case, we don't do any emulation because it will generate
// an empty translation block which we can't invalidate.
if (begin == until) {
return UC_ERR_OK;
}
switch (uc->arch) {
default:
break;