From 1d3b217a9c39eb4e16b2fc2d64e968f247ba85c7 Mon Sep 17 00:00:00 2001 From: James Bonfield Date: Thu, 18 Jul 2024 14:59:31 +0100 Subject: [PATCH] Add ubsan to the asan CI check. We already have address sanitizer, so add "undefined" into the mix. --- .cirrus.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 5d2e3b6a7..0d7d7d60f 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -73,8 +73,8 @@ gcc_task: USE_CONFIG: no - environment: USE_CONFIG: yes - CFLAGS: -std=c99 -pedantic -Wformat=2 -fsanitize=address - LDFLAGS: -fsanitize=address + CFLAGS: -std=c99 -pedantic -fsanitize=address,undefined -DHTS_ALLOW_UNALIGNED=0 + LDFLAGS: -fsanitize=address,undefined USE_LIBDEFLATE: yes install_script: | @@ -109,8 +109,9 @@ ubuntu_task: DO_UNTRACKED_FILE_CHECK: yes - environment: USE_CONFIG: yes - CFLAGS: -g -Wall -O3 + CFLAGS: -std=c99 -pedantic -Wformat=2 -g -Wall -O3 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.