github.com/whiteCcinn/protobuf-go@v1.0.9/internal/fuzz/oss-fuzz-build.sh (about) 1 # Copyright 2020 The Go Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style 3 # license that can be found in the LICENSE file. 4 5 # This script is executed by OSS-Fuzz's build to create fuzzer binaries. 6 7 for x in internal/fuzz/*; do 8 if [ -d $x/corpus ]; then 9 name=$(basename $x) 10 compile_go_fuzzer github.com/whiteCcinn/protobuf-go/$x Fuzz $name protolegacy 11 zip -jr $OUT/${name}_seed_corpus.zip $x/corpus 12 fi 13 done