From 7c80e9b86c89f5a87dcd5347b94fbb32b4137e2f Mon Sep 17 00:00:00 2001 From: Lukáš Zaoral Date: Sat, 22 Jan 2022 21:27:43 +0100 Subject: 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. --- scripts/build/v-sanitizer.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') 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[@]}") -- cgit 1.4.1