diff options
author | Max Moroz <mmoroz@chromium.org> | 2020-04-16 10:03:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-16 10:03:03 -0700 |
commit | 13cb49b86ca7d38072b895a8708a38655d64d299 (patch) | |
tree | d03a8560536f88b8daa1a680528ff94cf8d58f70 /projects/go-json-iterator | |
parent | 82175dc123ffde1ad6c9a13f459c188e26b403ae (diff) | |
download | oss-fuzz-13cb49b86ca7d38072b895a8708a38655d64d299.tar.gz |
[Go] remove "-lpthread" flag from "compile_fuzzer" and fix comments (#2714). (#3657)
* [Go] remove "-lpthread" flag from "compile_fuzzer" and fix comments (#2714).
* fix unrelated go-dns and gonids errors
* simplify golang/build.sh as per Abhishek's comment
Diffstat (limited to 'projects/go-json-iterator')
-rwxr-xr-x | projects/go-json-iterator/build.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/projects/go-json-iterator/build.sh b/projects/go-json-iterator/build.sh index 476de37d8..1d2bc4728 100755 --- a/projects/go-json-iterator/build.sh +++ b/projects/go-json-iterator/build.sh @@ -15,17 +15,16 @@ # ################################################################################ -# build target function function compile_fuzzer { path=$1 function=$2 fuzzer=$3 - # Instrument all Go files relevant to this fuzzer + # Compile and instrument all Go files relevant to this fuzz target. go-fuzz -func $function -o $fuzzer.a $path - # Instrumented, compiled Go ($fuzzer.a) + fuzzing engine = fuzzer binary - $CXX $CXXFLAGS $LIB_FUZZING_ENGINE $fuzzer.a -lpthread -o $OUT/$fuzzer + # Link Go code ($fuzzer.a) with fuzzing engine to produce fuzz target binary. + $CXX $CXXFLAGS $LIB_FUZZING_ENGINE $fuzzer.a -o $OUT/$fuzzer } compile_fuzzer . Fuzz fuzz_json |