Fix bpkt/hook remove

This commit is contained in:
Andrea Fioraldi 2021-10-01 16:05:45 +02:00
parent fe9d8cb50d
commit f9898d7db4

6
cpu.c
View File

@ -155,9 +155,10 @@ int libafl_qemu_remove_breakpoint(uint64_t addr)
*bp = (*bp)->next;
r = 1;
}
} else {
bp = &(*bp)->next;
}
}
return r;
}
@ -198,9 +199,10 @@ int libafl_qemu_remove_hook(uint64_t addr)
*hk = (*hk)->next;
r = 1;
}
} else {
hk = &(*hk)->next;
}
}
return r;
}