about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorLukáš Zaoral <lzaoral@redhat.com>2022-01-22 21:27:43 +0100
committerCristian Cadar <c.cadar@imperial.ac.uk>2022-03-09 20:45:11 +0100
commit7c80e9b86c89f5a87dcd5347b94fbb32b4137e2f (patch)
treee330cde717ef6778ddcf1f01da300cc5b4a59b30
parentb2df9d44ffba8e5008dbb567075728896363db99 (diff)
downloadklee-7c80e9b86c89f5a87dcd5347b94fbb32b4137e2f.tar.gz
CI: add `-fno-sanitize-recover=undefined` to UBSAN flags
By default, UBSAN does not fail when it reports an error.  Thus, the UBSAN CI
was green even though there were some errors reported.
-rw-r--r--scripts/build/v-sanitizer.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/build/v-sanitizer.inc b/scripts/build/v-sanitizer.inc
index e92d6f69..895ffd21 100644
--- a/scripts/build/v-sanitizer.inc
+++ b/scripts/build/v-sanitizer.inc
@@ -70,7 +70,8 @@ setup_variables_sanitizer() {
     # Undefined Behaviour Sanitizer
     if [ "${sanitizer}" == "undefined" ]; then
       echo "Using UBSan"
-      flags=("-fsanitize=undefined" "-fno-omit-frame-pointer" "-g")
+      flags=("-fsanitize=undefined" "-fno-omit-frame-pointer" "-g"
+             "-fno-sanitize-recover=undefined")
       SANITIZER_CXX_FLAGS+=("${flags[@]}")
       SANITIZER_C_FLAGS+=("${flags[@]}")
       SANITIZER_LD_FLAGS+=("${flags[@]}")