Skip to content

Add cargo-fuzz / libFuzzer coverage-guided mode. #294

Description

@codeZe-us

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions