fix recursive UC_HOOK_MEM callbacks for cross pages access (#1113)

Co-authored-by: bruno <bruno>
Co-authored-by: Nguyen Anh Quynh <aquynh@gmail.com>
This commit is contained in:
BrunoPujos
2020-05-25 10:22:28 +02:00
committed by GitHub
parent ac68fd441d
commit 6cad700b69
3 changed files with 73 additions and 46 deletions

View File

@ -223,6 +223,8 @@ struct uc_struct {
uint64_t block_addr; // save the last block address we hooked
int size_recur_mem; // size for mem access when in a recursive call
bool init_tcg; // already initialized local TCGv variables?
bool stop_request; // request to immediately stop emulation - for uc_emu_stop()
bool quit_request; // request to quit the current TB, but continue to emulate - for uc_mem_protect()