[libxml2] Work around strange -fsanitize=integer issue
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Work around strange -fsanitize=integer issue
- Date: Fri, 26 Aug 2022 14:38:09 +0000 (UTC)
commit 47803697b268b7b0a80f21ccfca09df3cedba8dc
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Fri Aug 26 16:31:55 2022 +0200
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(-)
---
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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]