From 47803697b268b7b0a80f21ccfca09df3cedba8dc Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Fri, 26 Aug 2022 16:31:55 +0200 Subject: Work around strange -fsanitize=integer issue With clang 14, __attribute__ ((nosanitize)) stops working with -fsanitize=undefined,integer Using the following works (and should be equivalent) -fsanitize=undefined,unsigned-integer-overflow,implicit-conversion --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9ed7029c..8aa58e9f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -57,7 +57,7 @@ clang:asan: variables: CONFIG: "--without-python" CC: clang - CFLAGS: "-O2 -g -fno-omit-frame-pointer -fsanitize=address,undefined,integer -fno-sanitize-recover=all -Wno-error=cast-align" + CFLAGS: "-O2 -g -fno-omit-frame-pointer -fsanitize=address,undefined,unsigned-integer-overflow,implicit-conversion -fno-sanitize-recover=all -Wno-error=cast-align" # LeakSanitizer requires SYS_CAP_PTRACE ASAN_OPTIONS: "detect_leaks=0" UBSAN_OPTIONS: "print_stacktrace=1" -- cgit v1.2.1