Skip to content

Commit

Permalink
bleach: fix dictionary copying (#12254)
Browse files Browse the repository at this point in the history
Files copied to /out during image creation seem to get hidden by a
volume mounted at /out when building the fuzzers.

I noticed this general issue while testing
#12250.
  • Loading branch information
correctmost authored Jul 25, 2024
1 parent 7c5c16c commit edd37c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions projects/bleach/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,5 @@ RUN git clone \
WORKDIR bleach

RUN git clone --depth 1 https://github.com/google/fuzzing
RUN cat fuzzing/dictionaries/html.dict > $OUT/linkify_fuzzer.dict
RUN cat fuzzing/dictionaries/html.dict > $OUT/sanitize_fuzzer.dict

COPY build.sh sanitize_fuzzer.py linkify_fuzzer.py $SRC/
4 changes: 4 additions & 0 deletions projects/bleach/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ pip3 install .
for fuzzer in $(find $SRC -name '*_fuzzer.py'); do
compile_python_fuzzer $fuzzer
done

# Copy fuzzer dictionaries to $OUT
cp fuzzing/dictionaries/html.dict "$OUT/linkify_fuzzer.dict"
cp fuzzing/dictionaries/html.dict "$OUT/sanitize_fuzzer.dict"

0 comments on commit edd37c4

Please sign in to comment.