aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Catena cyber <35799796+catenacyber@users.noreply.github.com>2020-11-06 00:26:34 +0100
committerGravatar GitHub <noreply@github.com>2020-11-05 15:26:34 -0800
commitb28d30ef3b18808922542e36966b23e05204a906 (patch)
treecdee01e0f3a3ff9fa9418dd163745f4bf41a196f
parentdc5574d93d1cf3a6d721efed4bbfff5b8dd6db9a (diff)
Compatible build for Suricata with CIFuzz (#4606)
-rw-r--r--projects/suricata/Dockerfile2
-rwxr-xr-xprojects/suricata/build.sh2
2 files changed, 3 insertions, 1 deletions
diff --git a/projects/suricata/Dockerfile b/projects/suricata/Dockerfile
index e4486b94..40352073 100644
--- a/projects/suricata/Dockerfile
+++ b/projects/suricata/Dockerfile
@@ -28,7 +28,7 @@ ADD https://rules.emergingthreats.net/open/suricata/emerging.rules.zip emerging.
RUN cargo install --force cbindgen
RUN git clone --depth 1 https://github.com/OISF/suricata.git suricata
-RUN git clone --depth 1 https://github.com/OISF/libhtp.git suricata/libhtp
+RUN git clone --depth 1 https://github.com/OISF/libhtp.git libhtp
RUN git clone --depth 1 https://github.com/OISF/suricata-verify suricata-verify
WORKDIR $SRC
COPY build.sh $SRC/
diff --git a/projects/suricata/build.sh b/projects/suricata/build.sh
index d569ed0b..d0e152d8 100755
--- a/projects/suricata/build.sh
+++ b/projects/suricata/build.sh
@@ -46,6 +46,8 @@ cd ..
export CARGO_BUILD_TARGET="x86_64-unknown-linux-gnu"
+#we did not put libhtp there before so that cifuzz does not remove it
+mv libhtp suricata/
# build project
cd suricata
sh autogen.sh