From ae6aaa62bbad8a6249e616d5b5e2452aba643d5a Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 21 Apr 2018 12:38:30 -0400 Subject: [PATCH] Copy dicts over if they exist --- Magick++/fuzz/build_fuzzers.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Magick++/fuzz/build_fuzzers.sh b/Magick++/fuzz/build_fuzzers.sh index 3dbce7fac..902b5b9f3 100644 --- a/Magick++/fuzz/build_fuzzers.sh +++ b/Magick++/fuzz/build_fuzzers.sh @@ -40,6 +40,12 @@ for item in $("$MAGICK_SRC/encoder_list"); do $encoder_flags $MAGICK_LIBS echo -e "[libfuzzer]\nclose_fd_mask=3" > "$MAGICK_OUTPUT/encoder_${encoder,,}_fuzzer.options" + + if [ -f "$MAGICK_SRC/dictionaries/${encoder,,}.dict" ]; then + cp "$MAGICK_SRC/dictionaries/${encoder,,}.dict" "$MAGICK_OUTPUT/${encoder,,}.dict" + echo -e "\ndict=${encoder,,}.dict" >> "$MAGICK_OUTPUT/ping_${encoder,,}_fuzzer.options" + echo -e "\ndict=${encoder,,}.dict" >> "$MAGICK_OUTPUT/encoder_${encoder,,}_fuzzer.options" + fi if [ $MAGICK_FAST_BUILD -eq 1 ]; then break -- 2.40.0