mirror of https://github.com/google/oss-fuzz.git
Makes suricata work with rust sanitizers (#3897)
This commit is contained in:
parent
37fbb75094
commit
84c9e6b503
|
@ -15,7 +15,7 @@
|
|||
################################################################################
|
||||
|
||||
FROM gcr.io/oss-fuzz-base/base-builder
|
||||
RUN apt-get update && apt-get install -y build-essential autoconf automake libtool make pkg-config rustc cargo python flex bison zlib1g-dev libpcre3-dev
|
||||
RUN apt-get update && apt-get install -y build-essential autoconf automake libtool make pkg-config python flex bison zlib1g-dev libpcre3-dev
|
||||
|
||||
#TODO libmagic, liblzma, pcre and other optional libraries
|
||||
ADD https://www.tcpdump.org/release/libpcap-1.9.1.tar.gz libpcap-1.9.1.tar.gz
|
||||
|
|
|
@ -44,10 +44,10 @@ make -j$(nproc)
|
|||
make install
|
||||
cd ..
|
||||
|
||||
export CARGO_BUILD_TARGET="x86_64-unknown-linux-gnu"
|
||||
|
||||
# build project
|
||||
cd suricata
|
||||
export PATH=$PATH:/root/.cargo/bin
|
||||
sh autogen.sh
|
||||
#run configure with right options
|
||||
./src/tests/fuzz/oss-fuzz-configure.sh
|
||||
|
|
Loading…
Reference in New Issue