aboutsummaryrefslogtreecommitdiff
path: root/projects/nats
diff options
context:
space:
mode:
authorCatena cyber <35799796+catenacyber@users.noreply.github.com>2020-11-19 23:18:25 +0100
committerGitHub <noreply@github.com>2020-11-19 14:18:25 -0800
commit217175212ba1d484017c32fe6518f85c1aa1273f (patch)
treebf48c327c2cd39c6fd02f1469190c90b2f2ed5ec /projects/nats
parent772d0efef58adee26223efeac80a9c8c44de496a (diff)
downloadoss-fuzz-217175212ba1d484017c32fe6518f85c1aa1273f.tar.gz
[infra] Use generic compile_go_fuzzer for golang projects (#4659)
* Use generic compile_go_fuzzer for golang projects * fix the copyright in the new script Co-authored-by: Max Moroz <mmoroz@chromium.org>
Diffstat (limited to 'projects/nats')
-rwxr-xr-xprojects/nats/build.sh12
1 files changed, 2 insertions, 10 deletions
diff --git a/projects/nats/build.sh b/projects/nats/build.sh
index 79f670c08..df01c7cf8 100755
--- a/projects/nats/build.sh
+++ b/projects/nats/build.sh
@@ -15,16 +15,8 @@
#
################################################################################
-function compile_fuzzer {
- path=$1
- function=$2
- fuzzer=$3
- go-fuzz -func $function -o $fuzzer.a $path
- $CXX $CXXFLAGS $LIB_FUZZING_ENGINE $fuzzer.a -o $OUT/$fuzzer
-}
-
-compile_fuzzer github.com/nats-io/nats-server/conf Fuzz fuzz_conf
-compile_fuzzer github.com/nats-io/nats-server/server FuzzClient fuzz_client
+compile_go_fuzzer github.com/nats-io/nats-server/conf Fuzz fuzz_conf
+compile_go_fuzzer github.com/nats-io/nats-server/server FuzzClient fuzz_client