From 0166f6a772363e8f93eadab59c1861c7b7a61252 Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Mon, 22 Jul 2024 12:38:16 +0000 Subject: [PATCH] cilium: fix seed corpus placement (#12260) Files copied to /out during image creation seem to get hidden by a volume mounted at /out when building the fuzzers. Similar issues: - https://github.com/google/oss-fuzz/pull/12254 - https://github.com/google/oss-fuzz/pull/12250 - https://github.com/google/oss-fuzz/pull/12259 --- projects/cilium/Dockerfile | 1 - projects/cilium/build.sh | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/cilium/Dockerfile b/projects/cilium/Dockerfile index 66beccfa3..591d54f75 100644 --- a/projects/cilium/Dockerfile +++ b/projects/cilium/Dockerfile @@ -19,7 +19,6 @@ RUN apt-get update && apt-get install -y wget RUN wget https://raw.githubusercontent.com/google/AFL/master/dictionaries/json.dict -O $OUT/fuzz.dict RUN git clone --depth 1 https://github.com/dvyukov/go-fuzz-corpus -RUN zip $OUT/fuzz_seed_corpus.zip go-fuzz-corpus/json/corpus/* RUN git clone --depth 1 https://github.com/cilium/cilium RUN git clone --depth 1 https://github.com/cncf/cncf-fuzzing diff --git a/projects/cilium/build.sh b/projects/cilium/build.sh index be74fde62..5f9be3c95 100755 --- a/projects/cilium/build.sh +++ b/projects/cilium/build.sh @@ -18,3 +18,5 @@ $SRC/cilium/test/fuzzing/oss-fuzz-build.sh $SRC/cncf-fuzzing/projects/cilium/build.sh + +zip "$OUT/fuzz_seed_corpus.zip" "$SRC"/go-fuzz-corpus/json/corpus/*