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

Add AFL_NO_CFG_FUZZING test #403

Closed
smoelius opened this issue Oct 16, 2023 · 0 comments · Fixed by #471
Closed

Add AFL_NO_CFG_FUZZING test #403

smoelius opened this issue Oct 16, 2023 · 0 comments · Fixed by #471

Comments

@smoelius
Copy link
Member

smoelius commented Oct 16, 2023

Background: #306 #398

The steps would be (roughly):

  1. Write a small a small example program that crashes only when cfg!(fuzzing) is not set.
  2. Add a test to verify that cargo-afl finds a crash exactly when cfg!(fuzzing) is not set, i.e., when cargo-afl is run with AFL_NO_CFG_FUZZING enabled.

Ideally, the example program will not just crash outright when cfg!(fuzzing) is not set. That is, cargo-afl should still have to do some work (e.g., flip a bit) to get the program to crash.

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

Successfully merging a pull request may close this issue.

1 participant