[cifuzz] Allow specifying corpus for run_fuzzer (#5064)

This commit is contained in:
jonathanmetzman 2021-01-28 15:04:43 -08:00 committed by GitHub
parent f2756d7321
commit de2ecf8553
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ DEBUGGER=${DEBUGGER:-}
FUZZER=$1
shift
CORPUS_DIR="/tmp/${FUZZER}_corpus"
CORPUS_DIR=${CORPUS_DIR:-"/tmp/${FUZZER}_corpus"}
SANITIZER=${SANITIZER:-}
if [ -z $SANITIZER ]; then
@ -63,8 +63,8 @@ function get_dictionary() {
fi
}
rm -rf $CORPUS_DIR && mkdir $CORPUS_DIR
rm -rf $FUZZER_OUT && mkdir $FUZZER_OUT
rm -rf $CORPUS_DIR && mkdir -p $CORPUS_DIR
rm -rf $FUZZER_OUT && mkdir -p $FUZZER_OUT
SEED_CORPUS="${FUZZER}_seed_corpus.zip"