diff --git a/projects/libmodbus/Dockerfile b/projects/libmodbus/Dockerfile index ee2f9fe52d5b..ab20099d812d 100644 --- a/projects/libmodbus/Dockerfile +++ b/projects/libmodbus/Dockerfile @@ -16,7 +16,8 @@ FROM gcr.io/oss-fuzz-base/base-builder RUN apt-get update && apt-get install -y make autoconf automake libtool libtool-bin -RUN git clone https://github.com/stephane/libmodbus/ +RUN git clone https://github.com/stephane/libmodbus.git +RUN git clone https://github.com/0x34d/oss-fuzz-bloat.git COPY build.sh $SRC/ COPY fuzz/ $SRC/libmodbus/fuzz/ WORKDIR $SRC/libmodbus/ diff --git a/projects/libmodbus/build.sh b/projects/libmodbus/build.sh index 10b7c35395e0..7511ae44b88a 100644 --- a/projects/libmodbus/build.sh +++ b/projects/libmodbus/build.sh @@ -20,6 +20,8 @@ make all cp FuzzClient $OUT/FuzzClient cp FuzzServer $OUT/FuzzServer -cp input.zip $OUT/FuzzClient_seed_corpus.zip -cp input.zip $OUT/FuzzServer_seed_corpus.zip +pushd $SRC/oss-fuzz-bloat/libmodbus/ +cp FuzzClient_seed_corpus.zip $OUT/FuzzClient_seed_corpus.zip +cp FuzzServer_seed_corpus.zip $OUT/FuzzServer_seed_corpus.zip +popd diff --git a/projects/libmodbus/fuzz/input.zip b/projects/libmodbus/fuzz/input.zip deleted file mode 100644 index d06da33beced..000000000000 Binary files a/projects/libmodbus/fuzz/input.zip and /dev/null differ