You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Go SDK: fuzz the Go frame codec against the guest's Rust codec, as vitaminc's differential fuzzers did #2004
The Go SDK (languages/golang) encodes values on the Go side with its own frame codec, now in languages/golang/internal/frame, and its WebAssembly guest decodes them with the Rust crates. The two codecs must agree byte for byte. A mismatch fails every call that sends that value.
vitaminc's Go module vcencrypt had two differential fuzzers, FuzzDifferentialValue and FuzzDifferentialCipherText. They fed the same input to the Go codec and to a Rust guest, and checked that the two agreed.
Problem
#2003 moved the codec into this repository, with its single-codec fuzz targets (FuzzUnmarshal, FuzzUnmarshalCipherText, FuzzUnmarshalStorage). It did not port the differential fuzzers. Nothing in this repository now checks, with generated inputs, that the Go codec and the guest agree. The conformance corpora check fixed vectors only.
Proposal
Port FuzzDifferentialValue and FuzzDifferentialCipherText so they compare internal/frame against languages/golang/encrypt/guest, through the guest's existing exports, or a test-only export if one is needed.
Add them to the nightly go-fuzz-campaign in .github/workflows/fuzz.yml, and replay their seeds in go test.
Activity