-
Notifications
You must be signed in to change notification settings - Fork 725
Expand file tree
/
Copy pathoss_fuzz_build.sh
More file actions
executable file
·26 lines (19 loc) · 894 Bytes
/
oss_fuzz_build.sh
File metadata and controls
executable file
·26 lines (19 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# Copyright Envoy Gateway Authors
# SPDX-License-Identifier: Apache-2.0
# The full text of the Apache license is available in the LICENSE file at
# the root of the repo.
# This file contains code derived from Istio, https://github.com/istio/istio
# from the source file https://github.com/istio/istio/blob/master/tests/fuzz/oss_fuzz_build.sh
# and is provided here subject to the following: Copyright Istio Authors SPDX-License-Identifier: Apache-2.0
# Using `compile_native_go_fuzzer_v2`
# Ref: https://github.com/google/oss-fuzz/pull/13835
cd "$SRC"/gateway
set -o nounset
set -o pipefail
set -o errexit
set -x
# compile native-format fuzzers
compile_native_go_fuzzer_v2 github.com/envoyproxy/gateway/test/fuzz FuzzGatewayAPIToXDS FuzzGatewayAPIToXDS
# add seed corpus
zip -j $OUT/FuzzGatewayAPIToXDS_seed_corpus.zip "$SRC"/gateway/test/fuzz/testdata/FuzzGatewayAPIToXDS/*