Skip to content

Commit

Permalink
fix broken golang build (google#11970)
Browse files Browse the repository at this point in the history
Ref
google#11677 (comment)

Signed-off-by: Adam Korczynski <[email protected]>
  • Loading branch information
AdamKorcz authored May 17, 2024
1 parent 59e17b5 commit 071e25d
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions projects/golang/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,6 @@ go get github.com/AdamKorcz/go-118-fuzz-build/testing
compile_native_go_fuzzer pngPackage FuzzDecode fuzz_png_decode
zip $OUT/fuzz_png_decode_seed_corpus.zip ./testdata/*.png

cd $SRC/go/src/image/gif
go mod init gifPackage
go get github.com/AdamKorcz/go-118-fuzz-build/testing
compile_native_go_fuzzer gifPackage FuzzDecode fuzz_gif_decode
zip $OUT/fuzz_gif_decode_seed_corpus.zip $SRC/go/src/image/testdata/*.gif

cd $SRC/go/src/compress/gzip
go mod init gzipPackage
go mod tidy
Expand All @@ -201,13 +195,12 @@ compile_native_go_fuzzer gzipPackage FuzzReader fuzz_std_lib_gzip_reader
zip $OUT/fuzz_std_lib_gzip_reader_seed_corpus.zip $SRC/go/src/compress/gzip/testdata/*

# golangs build from source currently breaks.
exit 0

cd $SRC/go/src/html
go mod init htmlPackage
go mod tidy
go get github.com/AdamKorcz/go-118-fuzz-build/testing
compile_go_fuzzer htmlPackage Fuzz fuzz_html_escape_unescape
compile_native_go_fuzzer htmlPackage FuzzEscapeUnescape fuzz_html_escape_unescape

# Install latest Go from master branch and build fuzzers again
cd $SRC
Expand All @@ -216,6 +209,8 @@ rm -r golang
git clone --depth 1 https://github.com/golang/go
git clone --depth 1 https://github.com/dvyukov/go-fuzz-corpus $SRC/golang
cd $SRC/go/src
# delete failing test
rm ./cmd/cgo/internal/testsanitizers/msan_test.go
./all.bash
ls /src/go/bin
export GOROOT="/src/go"
Expand Down

0 comments on commit 071e25d

Please sign in to comment.