thrifty/fuzz_persistence

Values

pub fn persist_failure(
  dir: String,
  seed: Int,
  iter: Int,
  data: BitArray,
  reason: types.DecodeError,
) -> Result(Nil, String)

Persist a failing fuzz payload and associated metadata.

Inputs

  • dir: output directory. Created if it does not already exist.
  • seed: deterministic seed used when generating the payload.
  • iter: iteration index within the seed loop.
  • data: the mutated payload bytes to persist.
  • reason: the decode error that triggered persistence.

Outputs

  • Ok(Nil) when both payload and metadata are written successfully.
  • Error(String) when directory creation or file writes fail.

The metadata is stored as a text file containing simple key=value lines for quick inspection.

Search Document