github-ci: enable asan for suricata-lua-sys in fuzz build

pull/13331/head
Jason Ish 1 year ago committed by Victor Julien
parent 0c1ded33da
commit 5a5b48179a

@ -1805,6 +1805,7 @@ jobs:
CC: "clang-15"
CXX: "clang++-15"
RUSTFLAGS: "-C instrument-coverage"
SURICATA_LUA_SYS_CFLAGS: "-fsanitize=address"
- run: ./qa/run-ossfuzz-corpus.sh
- run: llvm-profdata-15 merge -o default.profdata $(find /tmp/ -name '*.profraw')
- run: llvm-cov-15 show ./src/suricata -instr-profile=default.profdata --show-instantiations --ignore-filename-regex="^/root/.*" > coverage.txt

@ -58,6 +58,9 @@ endif
CARGO_ENV += LOCALSTATEDIR=$(e_localstatedir)
# To pass specific CFLAGS to Lua.
CARGO_ENV += SURICATA_LUA_SYS_CFLAGS="$(SURICATA_LUA_SYS_CFLAGS)"
all-local: Cargo.toml
mkdir -p $(abs_top_builddir)/rust/gen
cd $(abs_top_srcdir)/rust && \

Loading…
Cancel
Save