Skip to content

Add Go fuzz tests for OSS-Fuzz integration#70

Open
canolgun wants to merge 4 commits into
protocolbuffers:masterfrom
canolgun:add-fuzz-tests
Open

Add Go fuzz tests for OSS-Fuzz integration#70
canolgun wants to merge 4 commits into
protocolbuffers:masterfrom
canolgun:add-fuzz-tests

Conversation

@canolgun

Copy link
Copy Markdown

Adds Go native fuzz targets for OSS-Fuzz integration (google/oss-fuzz#15677).

Criticality: protobuf-go is the Go implementation of Protocol Buffers wire format. Every gRPC service, Kubernetes component, and cloud infrastructure service depends on this. A wire-format parsing bug = universal RCE/DoS vector across the Go ecosystem.

Fuzz targets:

  • FuzzConsumeTag — Wire-format tag parsing with arbitrary bytes
  • FuzzWireRoundTrip — Encode→decode consistency verification
  • FuzzVarintRoundTrip — Varint encoding round-trip integrity
  • FuzzConsumeField — Full field (tag+value) consumption safety

Verified: go test -fuzz=. -fuzztime=30s

Covers protobuf wire-format parsing: tag, varint, field value
consumption and encode→decode round-trip verification.
@puellanivis

Copy link
Copy Markdown

Thank you for your interest into contributing to this project.

Unfortunately this project does not accept GitHub pull requests as the source-of-truth for this project is hosted at https://go.googlesource.com/protobuf. This project page on GitHub is a mirror of that other repository.

If you would like to contribute to this project, please follow the contribution guidelines for instructions on how to send a change. If the change you'd like to make is more substantial or introduces any new features, then it should first be discussed on the issue tracker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants