From b3e54396faf2eb0341ef6763cc75aba036bc37c4 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Mon, 21 Oct 2019 20:09:22 +0200 Subject: [PATCH] Use UBsan in addition to Asan with 'make test' When building with make with the address sanitizer enabled, also enable the undefined behavior sanitizer. --- tests/scripts/all.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 6bdf347fc..3204464c8 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -138,7 +138,7 @@ pre_initialize_variables () { fi # CFLAGS and LDFLAGS for Asan builds that don't use CMake - ASAN_CFLAGS='-Werror -Wall -Wextra -fsanitize=address' + ASAN_CFLAGS='-Werror -Wall -Wextra -fsanitize=address,undefined' # Gather the list of available components. These are the functions # defined in this script whose name starts with "component_".