]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Running with ubsan works locally... Lets see how much it breaks CIT
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 4 Jun 2020 18:15:30 +0000 (13:15 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 4 Jun 2020 18:15:30 +0000 (13:15 -0500)
scripts/travis/build.sh

index 10f1c9f14ed2a904b6068cd7f83fe75986a69e08..54b270e932e5527d286a51748c9b0d9e3f7361e5 100755 (executable)
@@ -1,7 +1,5 @@
 #!/bin/sh -e
 
-enable_llvm_address_sanitizer=""
-
 #
 #  If this Travis matrix element does not require the build, we still need to run
 #  configure to make sure any autoconf generated files (tls-h et al) are still
@@ -17,10 +15,10 @@ fi
 #  Enable address sanitizer for the clang builds
 #
 if $CC -v 2>&1 | grep clang > /dev/null; then
-    echo "Enabling address sanitizer"
-    enable_address_sanitizer="--enable-llvm-address-sanitizer"
+    echo "Enabling llvm sanitizers"
+    enable_llvm_sanitizers="--enable-llvm-address-sanitizer --enable-llvm-leak-sanitizer --enable-llvm-undefined-behaviour-sanitizer"
 else
-    enable_address_sanitizer=""
+    enable_llvm_sanitizers=""
 fi
 
 #
@@ -32,7 +30,7 @@ fi
 echo "Performing full configuration"
 CFLAGS="${BUILD_CFLAGS}" ./configure -C \
     --enable-werror \
-    $enable_address_sanitizer \
+    $enable_llvm_sanitizers \
     --prefix=$HOME/freeradius \
     --with-shared-libs=$LIBS_SHARED \
     --with-threads=$LIBS_OPTIONAL \