mirror of
https://github.com/Vita3K/unicorn.git
synced 2024-11-23 05:19:40 +00:00
Removes some bugs found by oss-fuzz (#1266)
Leak on breakpoints Undefined shift in ARM
This commit is contained in:
parent
a143929942
commit
71a4ab4a6f
@ -666,7 +666,7 @@ NEON_VOP(shl_s32, neon_s32, 1)
|
||||
uint64_t HELPER(neon_shl_s64)(uint64_t valop, uint64_t shiftop)
|
||||
{
|
||||
int8_t shift = (int8_t)shiftop;
|
||||
int64_t val = valop;
|
||||
uint64_t val = valop;
|
||||
if (shift >= 64) {
|
||||
val = 0;
|
||||
} else if (shift <= -64) {
|
||||
|
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user