From b41c58ed7bb39c9cfbfde70a92813ad794e2ea0b Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Thu, 24 Oct 2024 22:52:37 +0100 Subject: [PATCH] Enable address and undefined behavior sanitizers --- scripts/build.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build.sh b/scripts/build.sh index 1900541..1ebf5d3 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -3,6 +3,7 @@ cd "$(git rev-parse --show-toplevel)" CFLAGS="$CFLAGS -std=c11 -pedantic -Wall -Wextra" CFLAGS="$CFLAGS -O0 -ggdb" CFLAGS="$CFLAGS -Ilib/include" +CFLAGS="$CFLAGS -fsanitize=address,undefined" mkdir -p build