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:56:28 +0200 |
commit | ed96e285516c84c2db00873c15b9ee31e06856de (patch) | |
tree | 0214060be0a0f42708114c6a4adb08c9224a09cf | |
parent | 9a750270a3f6e061831ff7571fcc700214b26995 (diff) | |
download | libxml2-ed96e285516c84c2db00873c15b9ee31e06856de.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
-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" |