Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support workspace #1

Open
wcampbell0x2a opened this issue Dec 10, 2023 · 1 comment
Open

Support workspace #1

wcampbell0x2a opened this issue Dec 10, 2023 · 1 comment

Comments

@wcampbell0x2a
Copy link

Thought I'd try this out on one of my projects: https://github.com/wcampbell0x2a/backhand

$ poetry run fz ../backhand --stop-on bug --max-fuzz-targets 2
API key is set in env var
Checking external dependencies...
[SUCCESS] semgrep
[SUCCESS] cargo fuzz
Warning: failed to run cargo fuzz init
Error: /home/wcampbell/projects/wcampbell/backhand/Cargo.toml (package.name) is malformed

About to autofuzz workspace members:
../backhand/backhand
../backhand/backhand-cli
../backhand/backhand-test

Retrying with workspace member: ../backhand/backhand
Warning: failed to run cargo fuzz init
Error: /home/wcampbell/projects/wcampbell/backhand/backhand/Cargo.toml (package.edition) is malformed

Aborting... could not cargo fuzz init, and not a virtual manifest
Saved fuzzomatic results to: ../backhand/.fuzzomatic_results.json

Final fuzz targets generated for this codebase:
**************************************************
args.codebase_dir='../backhand'
building=0
useful=0
bug_found=0
**************************************************

Code base total duration: 0:00:00.119447
@amietn
Copy link
Contributor

amietn commented Dec 11, 2023

Thank you for giving Fuzzomatic a try!
I believe this currently fails because cargo-fuzz fails to init on crates using edition.workspace = true in Cargo.toml
rust-fuzz/cargo-fuzz#333
It looks like there's already a PR fixing it as well so it should be fixed in cargo fuzz soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants