8000 fuzz: keep the corpus between nightly runs and add an operation-sequence target · Issue #387 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content

fuzz: keep the corpus between nightly runs and add an operation-sequence target #387

Closed

Description

@adityamukho

Problem

  • .github/workflows/fuzz.yml does not cache or commit the corpus. Each night every target starts again from the seeds in fuzz/corpus/. It then spends its 55 minutes finding the same coverage again, so the search never goes deeper over time.
  • All six targets parse one input: a WAL entry, header, page, query or eval. No target fuzzes a sequence of storage operations.
  • fuzz: btree_page target never reaches B+tree node decoding #375: the btree_page target never reaches B+tree node decoding.

The fuzzers have found real bugs (#319, #321), so the setup is worth building on.

Ask

  • Cache the corpus per target with actions/cache, keyed by target and restored with a prefix. Every week or so, run cargo fuzz cmin and commit the minimized corpus.
  • Add a differential target, ops_sequence. It decodes the fuzz input into a list of operations (transact, retract, checkpoint, reopen, query), runs them on a file-backed database, and compares the results with an in-memory reference model. It panics when they differ.
  • Add a target that writes a valid database, flips or truncates bytes at fuzzer-chosen offsets, then opens and queries it. Opening must return an error or correct data, never wrong data. (This depends on page checksums, filed separately.)
  • Fix fuzz: btree_page target never reaches B+tree node decoding #375.

Activity

  1. added
    stability
    on Sep 26, 2026
  2. added this to the v3.0.0 milestone on Sep 26, 2026
  3. added 6 commits that reference this issue on Oct 9, 2026
  4. adityamukho commented on Oct 14, 2026

    @adityamukho
    CollaboratorAuthor
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

    stability

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0