Skip to content

Commit

Permalink
Pass -fno-sanitize-recover=all to make all UBSan detections fatal
Browse files Browse the repository at this point in the history
From the clang docs:

> By default, non-fatal checks are those enabled by UndefinedBehaviorSanitizer, except for -fsanitize=return and -fsanitize=unreachable.
  • Loading branch information
squeek502 committed Mar 1, 2024
1 parent 693951e commit 5eae547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
submodules: recursive
- name: Build
run: CMAKE_OPTIONS="-DCMAKE_C_FLAGS=-fsanitize=address,undefined" make
run: CMAKE_OPTIONS="-DCMAKE_C_FLAGS=-fsanitize=address,undefined -fno-sanitize-recover" make
- name: Test
run: make test
- name: Test with Aggressive GC
Expand Down

0 comments on commit 5eae547

Please sign in to comment.