Skip to content

Commit

Permalink
[php] Enable fuzzer for parser (google#2883)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic authored and jonathanmetzman committed Sep 24, 2019
1 parent 2b13d85 commit 09aa9ac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion projects/php/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ make -j$(nproc)
sapi/cli/php sapi/fuzzer/generate_unserialize_dict.php
cp sapi/fuzzer/dict/unserialize $OUT/php-fuzz-unserialize.dict

FUZZERS="php-fuzz-json php-fuzz-exif php-fuzz-mbstring php-fuzz-unserialize"
# 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

FUZZERS="php-fuzz-json php-fuzz-exif php-fuzz-mbstring php-fuzz-unserialize php-fuzz-parser"
for fuzzerName in $FUZZERS; do
cp sapi/fuzzer/$fuzzerName $OUT/
# for loading missing libs like libonig
Expand Down

0 comments on commit 09aa9ac

Please sign in to comment.