aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects/json-sanitizer/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'projects/json-sanitizer/Dockerfile')
-rw-r--r--projects/json-sanitizer/Dockerfile17
1 files changed, 8 insertions, 9 deletions
diff --git a/projects/json-sanitizer/Dockerfile b/projects/json-sanitizer/Dockerfile
index 05a3b1fc..f36a1362 100644
--- a/projects/json-sanitizer/Dockerfile
+++ b/projects/json-sanitizer/Dockerfile
@@ -22,15 +22,14 @@ RUN git clone --depth 1 https://github.com/google/fuzzing
RUN cat fuzzing/dictionaries/json.dict \
fuzzing/dictionaries/html.dict \
fuzzing/dictionaries/xml.dict \
- > $OUT/DenylistFuzzer.dict
-RUN cat fuzzing/dictionaries/json.dict \
- fuzzing/dictionaries/html.dict \
- fuzzing/dictionaries/xml.dict \
- > $OUT/IdempotenceFuzzer.dict
-RUN cat fuzzing/dictionaries/json.dict \
- fuzzing/dictionaries/html.dict \
- fuzzing/dictionaries/xml.dict \
- > $OUT/ValidJsonFuzzer.dict
+ > $SRC/DenylistFuzzer.dict
+RUN cp fuzzing/dictionaries/json.dict $SRC/IdempotenceFuzzer.dict
+RUN cp fuzzing/dictionaries/json.dict $SRC/ValidJsonFuzzer.dict
+
+RUN git clone --depth 1 https://github.com/dvyukov/go-fuzz-corpus && \
+ zip -q $SRC/DenylistFuzzer_seed_corpus.zip go-fuzz-corpus/json/corpus/* && \
+ zip -q $SRC/IdempotenceFuzzer_seed_corpus.zip go-fuzz-corpus/json/corpus/* && \
+ zip -q $SRC/ValidJsonFuzzer_seed_corpus.zip go-fuzz-corpus/json/corpus/*
RUN git clone --depth 1 https://github.com/OWASP/json-sanitizer
COPY build.sh $SRC/