Add Go fuzz tests for OSS-Fuzz integration#70
Open
canolgun wants to merge 4 commits into
Open
Conversation
Covers protobuf wire-format parsing: tag, varint, field value consumption and encode→decode round-trip verification.
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 bytesFuzzWireRoundTrip— Encode→decode consistency verificationFuzzVarintRoundTrip— Varint encoding round-trip integrityFuzzConsumeField— Full field (tag+value) consumption safetyVerified:
go test -fuzz=. -fuzztime=30s