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.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user