]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
github-ci: enable asan for Ubuntu debug-validation test
authorJason Ish <jason.ish@oisf.net>
Thu, 2 Feb 2023 22:43:02 +0000 (16:43 -0600)
committerVictor Julien <vjulien@oisf.net>
Mon, 24 Apr 2023 14:59:52 +0000 (16:59 +0200)
.github/workflows/builds.yml

index d4b02fb9a9db2861ae640bba08e3696572e1b3b8..793b106324cb065a9c653ccb2d84379a27e7178f 100644 (file)
@@ -1436,7 +1436,12 @@ jobs:
           chmod 755 $HOME/.cargo/bin/cbindgen
           echo "$HOME/.cargo/bin" >> $GITHUB_PATH
       - run: ./autogen.sh
-      - run: CFLAGS="${DEFAULT_CFLAGS}" ./configure --enable-debug-validation
+      - run: ./configure --enable-debug-validation
+        env:
+          CFLAGS: "${{ env.DEFAULT_CFLAGS }} -Wshadow -fsanitize=address -fno-omit-frame-pointer"
+          LDFLAGS: "-fsanitize=address" 
+          ac_cv_func_malloc_0_nonnull: "yes"
+          ac_cv_func_realloc_0_nonnull: "yes"
       - run: make -j2
       - run: make check
       - name: Extracting suricata-verify