Skip to content

test: add cargo-fuzz targets for config parsing #217

@breferrari

Description

@breferrari

Summary

Add fuzz testing targets for the main parsing entry points to catch edge cases in config file handling.

Motivation

The adapters parse JSON and TOML from user-controlled files. Malformed input could cause panics, infinite loops, or unexpected behavior. Fuzz testing would systematically explore edge cases that unit tests miss.

Suggested targets

  • Pack::load() — pack.toml parsing
  • JSON config parsing in Claude Code and Gemini adapters
  • TOML config parsing in Codex adapter
  • Path validation in Store::write_files()
  • Header secret detection heuristics

Setup

Use cargo-fuzz with libFuzzer. Add a fuzz/ directory with targets. Can be run on-demand rather than in CI (fuzz runs are long).

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions