diff --git a/projects/ngolo-fuzzing/build.sh b/projects/ngolo-fuzzing/build.sh index 30d68b106..31738f952 100755 --- a/projects/ngolo-fuzzing/build.sh +++ b/projects/ngolo-fuzzing/build.sh @@ -18,6 +18,11 @@ # compile latest go from git ( cd $SRC/goroot/src +( +# temporary workaround for https://github.com/golang/go/issues/53190 +cd runtime +grep nosplit libfuzzer.go || sed -i 's/func libfuzzerTraceConstCmp/\n\/\/go:nosplit\nfunc libfuzzerTraceConstCmp/' libfuzzer.go +) ./make.bash ) rm -Rf /root/.go/ @@ -33,7 +38,7 @@ compile_package () { $SRC/LPM/external.protobuf/bin/protoc --go_out=./ ngolofuzz.proto mkdir cpp $SRC/LPM/external.protobuf/bin/protoc --cpp_out=./cpp ngolofuzz.proto - $CXX -stdlib=libc++ -c -I . -I $SRC/LPM/external.protobuf/include cpp/ngolofuzz.pb.cc + $CXX -DNDEBUG -stdlib=libc++ -c -I . -I $SRC/LPM/external.protobuf/include cpp/ngolofuzz.pb.cc $CXX $CXXFLAGS -c -Icpp -I $SRC/libprotobuf-mutator/ -I $SRC/LPM/external.protobuf/include $SRC/ngolo-fuzzing/lpm/ngolofuzz.cc ) if [ "$SANITIZER" = "coverage" ]