Skip seed corpus unpack for Honggfuzz in bad build check (#3600)

Matches AFL, also should fix some project failures like mbedtls with many targets.
This commit is contained in:
Abhishek Arya 2020-04-08 19:30:42 -07:00 committed by GitHub
parent f10d55e9bc
commit 149bb8bee7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ function check_engine {
return 1
fi
elif [[ "$FUZZING_ENGINE" == honggfuzz ]]; then
timeout --preserve-status -s INT 20s run_fuzzer $FUZZER_NAME &>$FUZZER_OUTPUT
SKIP_SEED_CORPUS=1 timeout --preserve-status -s INT 20s run_fuzzer $FUZZER_NAME &>$FUZZER_OUTPUT
CHECK_PASSED=$(egrep "^Sz:[0-9]+ Tm:[0-9]+" -c $FUZZER_OUTPUT)
if (( $CHECK_PASSED == 0 )); then
echo "BAD BUILD: fuzzing $FUZZER with honggfuzz failed."