Oss-fuzz ideal integration (#1265)
* Adds oss-fuzz badge * Generic fix for watchpoints leak
This commit is contained in:
@ -4,6 +4,7 @@ Unicorn Engine
|
||||
[](https://gitter.im/unicorn-engine/chat?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
[](https://travis-ci.org/unicorn-engine/unicorn)
|
||||
[](https://pepy.tech/project/unicorn)
|
||||
[](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:unicorn)
|
||||
|
||||
Unicorn is a lightweight, multi-platform, multi-architecture CPU emulator framework
|
||||
based on [QEMU](http://qemu.org).
|
||||
|
@ -32,7 +32,6 @@ void arm_release(void* ctx)
|
||||
g_free(cpu->cpreg_values);
|
||||
g_free(cpu->cpreg_vmstate_indexes);
|
||||
g_free(cpu->cpreg_vmstate_values);
|
||||
cpu_watchpoint_remove_all(CPU(cpu), BP_CPU);
|
||||
|
||||
release_common(ctx);
|
||||
}
|
||||
|
@ -51,6 +51,7 @@ static void release_common(void *t)
|
||||
memory_free(s->uc);
|
||||
tb_cleanup(s->uc);
|
||||
free_code_gen_buffer(s->uc);
|
||||
cpu_watchpoint_remove_all(CPU(s->uc->cpu), BP_CPU);
|
||||
|
||||
#if TCG_TARGET_REG_BITS == 32
|
||||
for(i = 0; i < s->nb_globals; i++) {
|
||||
|
Reference in New Issue
Block a user