ngolo-fuzzing: more generic arguments for fuzz targets building (#7653)

This commit is contained in:
Catena cyber 2022-05-02 13:08:26 +02:00 committed by GitHub
parent 3195128435
commit bcf7972c03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ mv $SRC/goroot /root/.go
compile_package () {
pkg=$1
pkg_flat=`echo $pkg | sed 's/\//_/g'`
args=`cat $SRC/ngolo-fuzzing/std/exclude.txt | grep "$pkg_flat " | awk '{print "-exclude", $2}'`
args=`cat $SRC/ngolo-fuzzing/std/args.txt | grep "$pkg_flat " | cut -d" " -f2-`
./ngolo-fuzzing $args $pkg fuzz_ng_$pkg_flat
(
cd fuzz_ng_$pkg_flat