Skip to content

Commit

Permalink
Remove asserts for debugging OSS-Fuzz
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin D. Howard <[email protected]>
  • Loading branch information
gavinhoward committed Jun 18, 2024
1 parent 6fe6364 commit 81ed3e6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1504,16 +1504,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;
}
Expand Down Expand Up @@ -1848,8 +1844,6 @@ bc_vm_atexit(BcStatus status)
bc_vec_free(&vm->jmp_bufs);
#endif // BC_DEBUG

assert(false);

return s;
}
#endif // BC_ENABLE_LIBRARY

0 comments on commit 81ed3e6

Please sign in to comment.