mirror of https://github.com/google/oss-fuzz.git
suricata: build with memory sanitizer (#8614)
with zlib compiled with MSAN Should fix #8574 cc @jonathanmetzman
This commit is contained in:
parent
5487477819
commit
d17cd053ea
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -6,5 +6,6 @@ auto_ccs:
|
|||
- "p.antoine@catenacyber.fr"
|
||||
sanitizers:
|
||||
- address
|
||||
- memory
|
||||
- undefined
|
||||
main_repo: 'https://github.com/OISF/suricata.git'
|
||||
|
|
Loading…
Reference in New Issue