mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-31 15:32:36 +00:00
81d297c66c
Use OSS-Fuzz's new compile_go_fuzzer script, which enables code coverage. Change-Id: Iff07ac09d054e8c881d819b4ce6d016ad2808978 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/272768 Trust: Damien Neil <dneil@google.com> Run-TryBot: Damien Neil <dneil@google.com> Reviewed-by: Joe Tsai <joetsai@google.com>
Fuzzing
Fuzzing support using go-fuzz.
Basic operation:
$ go install github.com/dvyukov/go-fuzz/go-fuzz
$ go install github.com/mdempsky/go114-fuzz-build
$ cd internal/fuzz/{fuzzer}
$ go114-fuzz-build google.golang.org/protobuf/internal/fuzz/{fuzzer}
$ go-fuzz
OSS-Fuzz
Fuzzers are automatically run by OSS-Fuzz.
The OSS-Fuzz configuration currently builds fuzzers in every directory under internal/fuzz. Only add fuzzers (not support packages) in this directory.
Fuzzing results are available at the OSS-Fuzz console,
under golang-protobuf
.