Skip to content

Add Go fuzz tests for OSS-Fuzz integration#1910

Open
canolgun wants to merge 2 commits into
stretchr:masterfrom
canolgun:add-fuzz-tests-v2
Open

Add Go fuzz tests for OSS-Fuzz integration#1910
canolgun wants to merge 2 commits into
stretchr:masterfrom
canolgun:add-fuzz-tests-v2

Conversation

@canolgun

Copy link
Copy Markdown

Adds Go native fuzz targets covering critical code paths.

Part of OSS-Fuzz integration (google/oss-fuzz#15667).

Fuzz targets (5):

  • FuzzAssertEqual — string assertion fuzzing (most-used testify function)
  • FuzzAssertJSON — JSON equality with arbitrary inputs
  • FuzzAssertYAML — YAML equality with arbitrary inputs
  • FuzzRequireInt — integer comparison assertions
  • FuzzElementsMatch — slice element matching

Fixed: //go:build go1.18 gate for pre-1.18 CI compatibility + gofmt.

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

canolgun added 2 commits June 11, 2026 17:49
Adds Go native fuzz targets covering critical code paths:
- Input parsing and validation edge cases
- Boundary/overflow conditions
- Comparator invariant verification

Part of OSS-Fuzz integration proposal (google/oss-fuzz#15667).
All targets verified: go test -fuzz=. -fuzztime=30s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant