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).
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 parsingStore::write_files()Setup
Use
cargo-fuzzwithlibFuzzer. Add afuzz/directory with targets. Can be run on-demand rather than in CI (fuzz runs are long).