mirror of https://github.com/google/oss-fuzz.git
[php] Enable unserializehash fuzzer (#4049)
This commit is contained in:
parent
d4b88fc4e1
commit
26af5e0e25
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue