diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/fuzz.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/fuzz.sh b/scripts/fuzz.sh index d2fd00a..fb13e49 100755 --- a/scripts/fuzz.sh +++ b/scripts/fuzz.sh @@ -10,3 +10,12 @@ popd pushd lib/header cargo +nightly fuzz run fuzz-target-header -- -max_total_time=180 popd + +# For vnf, we want to give it some ROM files as a corpus so it does a better job +# at fuzzing, otherwise vnf would just return a super early normal error and +# quit. +mkdir -p lib/vnf/fuzz/corpus/fuzz-target-vnf +cp tests/out/*.nes lib/vnf/fuzz/corpus/fuzz-target-vnf/ +pushd lib/vnf +cargo +nightly fuzz run fuzz-target-vnf -- -max_total_time=180 +popd |
