[libxml2/2.10] Work around strange -fsanitize=integer issue



commit ed96e285516c84c2db00873c15b9ee31e06856de
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]