From 09c930749302377a4d41e2e9c3d45bf4c6a81720 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Sat, 28 Feb 2026 10:06:06 +0100 Subject: [PATCH] ci: build with ASan and UBSan Should help us find the following bugs early. ASan: * Out-of-bounds accesses * Use-after-free * Memory leaks * Double free / Invalid free UBSan: * Undefined Behavior * Signed integer overflow * Null pointer dereference * Pointer misalignment * Division by zero * Bit-shifting out of bounds This needs works during runtime. But let's add it here so that at least basic --version run is test and as a reminder for developer to add it. I will also adjust documentation later on. --- ci-meson-build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci-meson-build.sh b/ci-meson-build.sh index 0e9ac495..e6333728 100755 --- a/ci-meson-build.sh +++ b/ci-meson-build.sh @@ -39,7 +39,7 @@ tests=( if [[ "$(uname | tr '[:upper:]' '[:lower:]')" == linux* ]]; then echo "--> Running Valgrind check with full features" - meson setup build_valgrind ${tests[0]} -Dtests=true + meson setup build_valgrind ${tests[0]} -Dtests=true -Db_sanitize=address,undefined meson compile -C build_valgrind meson test -C build_valgrind --print-errorlogs --wrap=valgrind || echo "Valgrind issues detected"