Repository navigation
FP-7: fuzzers, fuzz-all and CI fuzzing for every target - #312
Merged
Merged
Conversation
- FuzzDockerProjection: inspect JSON through a new pure project(), split out of (*Index).inspect with no behaviour change; TestProject and TestDockerProjectionJSON share its seed table. - FuzzRowFromProto (dest_s3parquet): an envelope through rowFromProto, Parquet write and read back; TestRowFromProtoRoundTrip shares its seeds. - FuzzClean: idempotence and fast-path identity; TestCleanProperties. - fuzz-all (nix/scripts/fuzz-all.bash, dev shell): discovers every target with go test -list under the flavor tags, guards a minimum count, runs all, lists crashers. - .github/workflows/fuzz.yml: fuzz-pr at 10 s per target, fuzz-nightly at 2 min, crashers uploaded on failure. - goiphttp: vrf show NAME for a name that is no VRF is a 404, not a 500 (found by the first full run; input kept as a seed and a table row). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- getJSON takes a limit: /version 64 KiB, /containers/json 32 MiB, inspect 1 MiB; over it is errBodyTooLarge (container skipped, or the re-list fails and the old index stays). Decoding keeps json.Decoder's semantics. - drainClose discards at most 64 KiB, then closes. An /events line over the scanner's 1 MiB ended the scan, and the unbounded drain then blocked the refresh goroutine on the endless stream. - Table tests: TestGetJSONLimit, TestInspectBodyCap, TestDrainCloseBounded, TestEventsOversizedLineReturns (fails in 20 s with the old drain). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
FP-7 (D4) from
docs/security-hardening/focused-implementation-plan.md.FuzzDockerProjection: Docker inspect JSON → new pureproject()(split from(*Index).inspect, no behaviour change); invariants: valid UTF-8, ≤ MaxLen, no control runes, inode ≠ 0.FuzzRowFromProto(dest_s3parquet): envelope →rowFromProto→ Parquet write → read back, byte-for-byte.FuzzClean: adds idempotence and fast-path identity checks.fuzz-all(dev shell,nix/scripts/fuzz-all.bash): discovers everyFuzz*viago test -listunder the flavor tags (50 today), fails below a minimum count, runs all, lists crashers..github/workflows/fuzz.yml:fuzz-pr10 s/target on PRs;fuzz-nightly2 min/target daily +workflow_dispatch; crashers and logs uploaded on failure./ip/vrf/show/NAMEfor a non-VRF name returned 500; now 404. Input committed as a seed plus a table row./version64 KiB, list 32 MiB, inspect 1 MiB);drainClosebounded to 64 KiB. Bug: an/eventsline over 1 MiB made the unbounded drain block the refresh goroutine on the endless stream, so metadata silently stopped updating.go test ./...on main: FP-6: bounded S3 queue, disk spill, string policy #308 putpkg/strpolicyin xtcpnl's closure; genl clones: devlink, vdpa, fou, mptcp, tipc read-only clones + iproute2 findings #309's godevlink/gotipc/govdpa closure tests lacked it.go test ./..., taggedpkg/xtcp, lint-baseline, golangci (3 tiers), gofmt, go-vet, nix-fmt, no-write-encoders, flavor-tags.FuzzRowFromProtoseeds.🤖 Generated with Claude Code