diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2022-08-26 16:31:55 +0200 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2022-08-26 16:37:46 +0200 |
commit | 47803697b268b7b0a80f21ccfca09df3cedba8dc (patch) | |
tree | 7ec3fbf775312fa976f9e273650315be2e1cf9c5 /.gitlab-ci.yml | |
parent | 8016c8edcc73879a83270d4cd79a3def094d51a7 (diff) | |
download | libxml2-47803697b268b7b0a80f21ccfca09df3cedba8dc.tar.gz |
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
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 2 |
1 files changed, 1 insertions, 1 deletions
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" |