mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-04 02:38:50 +00:00
d8bc21f7e1
Fixes golang/protobuf#1084. Change-Id: I2c71e9f58d09345d13f461ec78ee4e39c3a7f06d Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/228277 Reviewed-by: Joe Tsai <joetsai@google.com>
27 lines
751 B
Markdown
27 lines
751 B
Markdown
# Fuzzing
|
|
|
|
Fuzzing support using [go-fuzz](https://github.com/dvyukov/go-fuzz).
|
|
|
|
Basic operation:
|
|
|
|
```sh
|
|
$ 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](https://github.com/google/oss-fuzz).
|
|
|
|
The OSS-Fuzz
|
|
[configuration](https://github.com/google/oss-fuzz/blob/master/projects/golang-protobuf/build.sh)
|
|
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](https://oss-fuzz.com/),
|
|
under `golang-protobuf`.
|