File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -73,9 +73,11 @@ gcc_task:
73
73
USE_CONFIG : no
74
74
- environment :
75
75
USE_CONFIG : yes
76
- CFLAGS : -std=c99 -pedantic -Wformat=2 -fsanitize=address
77
- LDFLAGS : -fsanitize=address
76
+ # ubsan is incompatible with some -Wformat opts so we do that on clang.
77
+ CFLAGS : -fsanitize=address,undefined -DHTS_ALLOW_UNALIGNED=0 -Wno-format-truncation -Wno-format-overflow
78
+ LDFLAGS : -fsanitize=address,undefined
78
79
USE_LIBDEFLATE : yes
80
+ UBSAN_OPTIONS : print_stacktrace=1:halt_on_error=1
79
81
80
82
install_script : |
81
83
apt-get update
@@ -108,8 +110,9 @@ ubuntu_task:
108
110
USE_CONFIG : yes
109
111
DO_UNTRACKED_FILE_CHECK : yes
110
112
- environment :
113
+ # Cirrus-CI's clang isn't installed with ubsan, so we do that in gcc
111
114
USE_CONFIG : yes
112
- CFLAGS : -g -Wall -O3
115
+ CFLAGS : -std=c99 -pedantic -Wformat - g -Wall -O3
113
116
USE_LIBDEFLATE : yes
114
117
115
118
# NB: we could consider building a docker image with these
You can’t perform that action at this time.
0 commit comments