suricata: build with memory sanitizer (#8614)

with zlib compiled with MSAN

Should fix #8574 cc @jonathanmetzman
This commit is contained in:
Catena cyber 2022-09-28 12:53:50 +02:00 committed by GitHub
parent 5487477819
commit d17cd053ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 0 deletions

View File

@ -23,6 +23,7 @@ ADD https://www.tcpdump.org/release/libpcap-1.9.1.tar.gz libpcap-1.9.1.tar.gz
ADD http://www.digip.org/jansson/releases/jansson-2.12.tar.gz jansson-2.12.tar.gz
RUN git clone --depth=1 https://github.com/yaml/libyaml
ADD https://github.com/lz4/lz4/archive/v1.9.2.tar.gz lz4-1.9.2.tar.gz
RUN git clone --depth 1 -b develop https://github.com/madler/zlib.git
RUN git clone --depth=1 https://github.com/catenacyber/fuzzpcap
ADD https://rules.emergingthreats.net/open/suricata/emerging.rules.zip emerging.rules.zip

View File

@ -16,6 +16,17 @@
################################################################################
# build dependencies statically
if [ "$SANITIZER" = "memory" ]
then
(
cd zlib
./configure --static
make -j$(nproc) clean
make -j$(nproc) all
make -j$(nproc) install
)
fi
(
tar -xvzf pcre2-10.39.tar.gz
cd pcre2-10.39

View File

@ -6,5 +6,6 @@ auto_ccs:
- "p.antoine@catenacyber.fr"
sanitizers:
- address
- memory
- undefined
main_repo: 'https://github.com/OISF/suricata.git'