Removes some bugs found by oss-fuzz (#1266)

Leak on breakpoints
Undefined shift in ARM
This commit is contained in:
Catena cyber
2020-05-26 14:52:40 +02:00
committed by GitHub
parent a143929942
commit 71a4ab4a6f
2 changed files with 2 additions and 1 deletions

View File

@ -52,6 +52,7 @@ static void release_common(void *t)
tb_cleanup(s->uc);
free_code_gen_buffer(s->uc);
cpu_watchpoint_remove_all(CPU(s->uc->cpu), BP_CPU);
cpu_breakpoint_remove_all(CPU(s->uc->cpu), BP_CPU);
#if TCG_TARGET_REG_BITS == 32
for(i = 0; i < s->nb_globals; i++) {