From 42d219a202ded0d2b330ac511a87cb0bd848237b Mon Sep 17 00:00:00 2001 From: Arjun <36335769+0x34d@users.noreply.github.com> Date: Wed, 8 Feb 2023 21:06:05 +0530 Subject: [PATCH] [libmodbus] remove bloat (#9634) - Remove bloat. Signed-off-by: Arjun Singh Signed-off-by: Arjun Singh --- projects/libmodbus/Dockerfile | 3 ++- projects/libmodbus/build.sh | 6 ++++-- projects/libmodbus/fuzz/input.zip | Bin 1567 -> 0 bytes 3 files changed, 6 insertions(+), 3 deletions(-) delete mode 100644 projects/libmodbus/fuzz/input.zip 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 d06da33beced5af20e34ceccbf1221e100dff4c1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1567 zcmWIWW@h1H0D-HW-$K9)D8a@c!;qO*P+FoN8p6rIysGzB(heXlt>9*0WO>2NzyKx! zQ1nMz_Hpt6^@Fe=Tz`mjK)hkRfnHH!IozoF1sFy#FamY4G4caRW{|NWKn4fcSx4t(9W_fp zj0NSNEsfLBjD@B#e8wVtj+z6IUHc!!Sa^QGXDq_CsCfX{*btzjApr^s1bB|XXDq_C zxWjf8im~u4L7cIunE=_fj7-R`g=Y!kj77}?$i_yY7z@u3_>3hcY}cb1OCTk%vH_!* QffEQ>fTcSt5Hm0U02q&C%>V!Z