Random mutation finds shallow bugs; coverage guidance finds deep ones. Adding a libFuzzer target lets the tool explore parser branches the random loop would rarely reach.
Issues/what to fix
- Add a
fuzz/ directory with a cargo-fuzz target fuzz_targets/parse.rs calling prism-core on arbitrary bytes.
- Seed the corpus with the valid-address generator output from Task 2.2.
- Document
cargo fuzz run parse in the README as the deep-fuzz entry point.
Files location
fuzz/Cargo.toml, fuzz/fuzz_targets/parse.rs
Expected result
cargo fuzz run parse executes coverage-guided fuzzing over the real parser.
Join the contributor Telegram group: https://t.me/+g6EPIsHod0RhZGZk
Random mutation finds shallow bugs; coverage guidance finds deep ones. Adding a libFuzzer target lets the tool explore parser branches the random loop would rarely reach.
Issues/what to fix
fuzz/directory with acargo-fuzztargetfuzz_targets/parse.rscallingprism-coreon arbitrary bytes.cargo fuzz run parsein the README as the deep-fuzz entry point.Files location
fuzz/Cargo.toml,fuzz/fuzz_targets/parse.rsExpected result
cargo fuzz run parseexecutes coverage-guided fuzzing over the real parser.Join the contributor Telegram group: https://t.me/+g6EPIsHod0RhZGZk