diff --git a/projects/php/build.sh b/projects/php/build.sh index 3c007e88b..fd11356a1 100755 --- a/projects/php/build.sh +++ b/projects/php/build.sh @@ -42,17 +42,20 @@ export CXXFLAGS="$CXXFLAGS -fno-sanitize=object-size" --with-pic make -j$(nproc) -# Generate dictionary for unserialize fuzzer -sapi/cli/php sapi/fuzzer/generate_unserialize_dict.php +# Generate corpuses and dictionaries. +sapi/cli/php sapi/fuzzer/generate_all.php + +# Copy dictionaries to expected locations. cp sapi/fuzzer/dict/unserialize $OUT/php-fuzz-unserialize.dict - -# Generate initial corpus for parser fuzzer -sapi/cli/php sapi/fuzzer/generate_parser_corpus.php cp sapi/fuzzer/dict/parser $OUT/php-fuzz-parser.dict - cp sapi/fuzzer/json.dict $OUT/php-fuzz-json.dict -FUZZERS="php-fuzz-json php-fuzz-exif php-fuzz-mbstring php-fuzz-unserialize php-fuzz-parser" +FUZZERS="php-fuzz-json +php-fuzz-exif +php-fuzz-mbstring +php-fuzz-unserialize +php-fuzz-unserializehash +php-fuzz-parser" for fuzzerName in $FUZZERS; do cp sapi/fuzzer/$fuzzerName $OUT/ done