From 84c9e6b5038090b311f67411473f8e9d576fa90f Mon Sep 17 00:00:00 2001 From: Catena cyber <35799796+catenacyber@users.noreply.github.com> Date: Thu, 28 May 2020 17:27:56 +0200 Subject: [PATCH] Makes suricata work with rust sanitizers (#3897) --- projects/suricata/Dockerfile | 2 +- projects/suricata/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/suricata/Dockerfile b/projects/suricata/Dockerfile index 1c85c3414..e4486b94f 100644 --- a/projects/suricata/Dockerfile +++ b/projects/suricata/Dockerfile @@ -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 diff --git a/projects/suricata/build.sh b/projects/suricata/build.sh index 4dd233436..843e9afc8 100755 --- a/projects/suricata/build.sh +++ b/projects/suricata/build.sh @@ -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