From c2352eb4cd05af6bfc61a8dcec47182e7ed88760 Mon Sep 17 00:00:00 2001 From: "Gavin D. Howard" Date: Tue, 18 Jun 2024 15:28:06 -0600 Subject: [PATCH] Remove asserts for debugging OSS-Fuzz Signed-off-by: Gavin D. Howard --- src/vm.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/vm.c b/src/vm.c index dfbb8468..dddd2af6 100644 --- a/src/vm.c +++ b/src/vm.c @@ -693,6 +693,8 @@ bc_vm_shutdown(void) bc_parse_free(&vm->prs); bc_program_free(&vm->prog); + assert(false); + bc_slabvec_free(&vm->slabs); #endif // !BC_ENABLE_LIBRARY @@ -1504,16 +1506,12 @@ bc_vm_exec(void) assert(!BC_ENABLE_OSSFUZZ || BC_EXPR_EXIT == 0); - assert(vm->exprs.len); - // If there are expressions to execute... if (vm->exprs.len) { // Process the expressions. bc_vm_exprs(); - assert(false); - // Sometimes, executing expressions means we need to quit. if (!vm->no_exprs && vm->exit_exprs && BC_EXPR_EXIT) return; } @@ -1848,8 +1846,6 @@ bc_vm_atexit(BcStatus status) bc_vec_free(&vm->jmp_bufs); #endif // BC_DEBUG - assert(false); - return s; } #endif // BC_ENABLE_LIBRARY