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

testing: instructions in fuzz/README.md don't work: cargo install afl fails #45

Open
xpe opened this issue Oct 3, 2024 · 0 comments
Open

Comments

@xpe
Copy link

xpe commented Oct 3, 2024

From fuzz/README.md:

# Fuzz Testing

This is the fuzz testing target for the `crc32fast` crate.

1. Install `afl` via `cargo install afl`
2. Build the fuzz target via `cargo afl build`
3. Generate a random input file via `head -c 1000 </dev/urandom >in/random`
3. Run the fuzz test via `cargo afl fuzz -i in -o out -- ./target/debug/fuzz`

But on my system, cargo install afl fails with this error:

error: there is nothing to install in `afl v0.15.10`, because it has no binaries
`cargo install` is only for installing programs, and can't be used with libraries.
To use a library crate, add it as a dependency to a Cargo project with `cargo add`.
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

1 participant