返回 Skill 列表
extension
分类: 开发与工程无需 API Key

Cargo Fuzz

针对cargo fuzz的逐步指导

person作者: jakexiaohubgithub

Cargo Fuzz

Use cargo-fuzz effectively to uncover input-handling bugs and improve Rust code robustness.

When to Use

  • You need to fuzz-test Rust code paths that process untrusted input.
  • You found a crash and want reproducible triage and fixes.

Workflow

  1. Identify high-risk targets (parsers, decoders, protocol handlers).
  2. Create fuzz target harness with clear entrypoint and constraints.
  3. Seed useful corpus and configure sanitizers/timeouts.
  4. Reproduce and minimize crashes for deterministic debugging.
  5. Propose and validate fixes with regression and property checks.

Output

  • Fuzz target setup plan
  • Crash triage notes and fix strategy
  • Regression checklist for hardened input handling