Skip to content

Commit

Permalink
use seed corpus while running a fuzzer. Fixes #19
Browse files Browse the repository at this point in the history
  • Loading branch information
mikea committed Nov 2, 2016
1 parent 8e2aa92 commit 217223f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions infra/base-images/base-libfuzzer/just_run
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,12 @@ if [ -f $OPTIONS_FILE ]; then
CMD_LINE="$CMD_LINE $OPTIONS_ARGS"
fi

SEED_CORPUS="${FUZZER}_seed_corpus.zip"
if [ -f $SEED_CORPUS ]; then
mkdir /tmp/seed_corpus/
unzip -d /tmp/seed_corpus/ $SEED_CORPUS
CMD_LINE="$CMD_LINE /tmp/seed_corpus/"
fi

echo $CMD_LINE
bash -c "$CMD_LINE"
7 changes: 7 additions & 0 deletions infra/base-images/libfuzzer-runner/run_fuzzer
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,12 @@ if [ -f $OPTIONS_FILE ]; then
CMD_LINE="$CMD_LINE $OPTIONS_ARGS"
fi

SEED_CORPUS="${FUZZER}_seed_corpus.zip"
if [ -f $SEED_CORPUS ]; then
mkdir /tmp/seed_corpus/
unzip -d /tmp/seed_corpus/ $SEED_CORPUS
CMD_LINE="$CMD_LINE /tmp/seed_corpus/"
fi

echo $CMD_LINE
bash -c "$CMD_LINE"

0 comments on commit 217223f

Please sign in to comment.