Skip to content

Commit

Permalink
Add an assert to the OSS-Fuzz build
Browse files Browse the repository at this point in the history
This is to try to get around a Clang miscompilation

Signed-off-by: Gavin D. Howard <[email protected]>
  • Loading branch information
gavinhoward committed Jun 18, 2024
1 parent 81ed3e6 commit 7d79105
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1844,6 +1844,12 @@ bc_vm_atexit(BcStatus status)
bc_vec_free(&vm->jmp_bufs);
#endif // BC_DEBUG

#if BC_ENABLE_OSSFUZZ
assert(status != BC_STATUS_QUIT);
#endif // BC_ENABLE_OSSFUZZ

assert(false);

return s;
}
#endif // BC_ENABLE_LIBRARY

0 comments on commit 7d79105

Please sign in to comment.