Skip to content

Commit

Permalink
Add ubsan to the asan CI check.
Browse files Browse the repository at this point in the history
We already have address sanitizer, so add "undefined" into the mix.
  • Loading branch information
jkbonfield committed Jul 18, 2024
1 parent f8016c0 commit b38d6d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ ubuntu_task:
DO_UNTRACKED_FILE_CHECK: yes
- environment:
USE_CONFIG: yes
CFLAGS: -g -Wall -O3
CFLAGS: -g -Wall -O3 -fsanitize=undefined -DHTS_ALLOW_UNALIGNED=0
LDFLAGS: -fsanitize=undefined
USE_LIBDEFLATE: yes
UBSAN_OPTIONS: print_stacktrace=1:halt_on_error=1

# NB: we could consider building a docker image with these
# preinstalled and specifying that instead, to speed up testing.
Expand Down

0 comments on commit b38d6d4

Please sign in to comment.