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 an example fuzzer with AFL-Style UI #1501

Merged
merged 4 commits into from
Sep 12, 2023

Conversation

ToSeven
Copy link
Contributor

@ToSeven ToSeven commented Sep 5, 2023

No description provided.

@ToSeven
Copy link
Contributor Author

ToSeven commented Sep 5, 2023

Due to a lack of stages/stats.rs (Because #1351 is not merged into the main branch), This commit failed to build.

@tokatoka
Copy link
Member

tokatoka commented Sep 5, 2023

you can merge #1351 to this

@tokatoka
Copy link
Member

tokatoka commented Sep 7, 2023

can you cargo fmt?

@ToSeven
Copy link
Contributor Author

ToSeven commented Sep 7, 2023

can you cargo fmt?

I found "cargo fmt" that is executed directory in root directory dosen't make ./fuzzer formatted : (

@tokatoka
Copy link
Member

tokatoka commented Sep 7, 2023

I found "cargo fmt" that is executed directory in root directory dosen't make ./fuzzer formatted : (

yes you need to cargo fmt in each fuzzer

can you edit Makefile.toml for your fuzzer and pass ci? apparently parsing stdout doesn't work out for your fuzzer.

@domenukk
Copy link
Member

domenukk commented Sep 7, 2023

there is also ./scripts/fmt_all.sh that does all of the formatting

@domenukk
Copy link
Member

There's still an error in the example fuzzer somewhere:

Fuzzer does not generate any testcases or any crashes

(timeout 11s ./${FUZZER_NAME} >fuzz_stdout.log 2>/dev/null || true) &
sleep 0.2
timeout 10s ./${FUZZER_NAME} >/dev/null 2>/dev/null || true
if [ -z "$(grep "corpus: 30" fuzz_stdout.log)" ]; then
Copy link
Member

@tokatoka tokatoka Sep 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change this.
you can, for example, use the corpus that saves into the disk and count the number of entries in the corpus folder

or it won't pass the test

Copy link
Contributor Author

@ToSeven ToSeven Sep 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I already have known the root cause before you make a comment. but thank for your reminders.

@domenukk
Copy link
Member

I don't really see any output in the UI :D
but all in all fuzzing seems to do something which is good, thanks

@domenukk domenukk merged commit defe908 into AFLplusplus:main Sep 12, 2023
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

Successfully merging this pull request may close these issues.

3 participants