Oss-fuzz ideal integration (#1262)

* Fix watchpoint leak in ARM

* Builds fuzz targets with sanitizer support

* Builds fuzz targets with directory driver

* Adds script to dowlonad public corpus

* Adds CIfuzz

To checks Pull Requests with fuzzing

* Use static library for fuzz targets

* Less verbose logs for fuzz driver directory
This commit is contained in:
Catena cyber
2020-05-21 10:15:12 +02:00
committed by GitHub
parent e2d1c5bf13
commit 216c348c35
6 changed files with 150 additions and 2 deletions

11
tests/fuzz/dlcorpus.sh Normal file
View File

@@ -0,0 +1,11 @@
#/bin/sh
#change to script directory
cd `dirname $0`
ls fuzz_emu*.c | sed 's/.c//' | while read target
do
#download public corpus
wget "https://storage.googleapis.com/unicorn-backup.clusterfuzz-external.appspot.com/corpus/libFuzzer/unicorn_$target/public.zip"
unzip -q public.zip -d corpus_$target
#run target on corpus
./$target corpus_$target
done