diff options
author | Catena cyber <35799796+catenacyber@users.noreply.github.com> | 2020-05-28 17:27:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-28 08:27:56 -0700 |
commit | 84c9e6b5038090b311f67411473f8e9d576fa90f (patch) | |
tree | 87551c0dfdea6c56fe13957e09df3f8ff2429b10 /projects/suricata | |
parent | 37fbb75094f376001580a8138f6bc59849d11726 (diff) | |
download | oss-fuzz-84c9e6b5038090b311f67411473f8e9d576fa90f.tar.gz |
Makes suricata work with rust sanitizers (#3897)
Diffstat (limited to 'projects/suricata')
-rw-r--r-- | projects/suricata/Dockerfile | 2 | ||||
-rwxr-xr-x | 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 |