Skip to content

Go SDK: fuzz the Go frame codec against the guest's Rust codec, as vitaminc's differential fuzzers did #2004

Backlog

Description

@coderdan

Background

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

  1. 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.
  2. Add them to the nightly go-fuzz-campaign in .github/workflows/fuzz.yml, and replay their seeds in go test.

Relationship to other work

Activity

  1. added
    enhancement
    Golang
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GolangSDKenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions