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

InProcess Template Fuzzer for librairies #2748

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

golem9247
Copy link
Contributor

Hey
If you want, i wrote a template fuzzer with Makefile.toml and a baic library with crash for the fuzzers/ examples dirs

@domenukk
Copy link
Member

domenukk commented Dec 6, 2024

What does template mean in this case?

@golem9247
Copy link
Contributor Author

There is no "functionnality" preview just like you did with other examples fuzzers. It's just a InMemoryProcess fuzzers simillar to libpng fuzzers examples with a external libsrc. I used the term "template" to add a clean/short fuzzer with a few src / cmakeproject for a basic example for libafl.

@domenukk
Copy link
Member

domenukk commented Dec 9, 2024

Aah so it's an example how to use LibAFL together with a Cmake target

}

// simply RECOMPILE WITH -DTEST_CORPUS=1 OR -DTEST_ALL_CORPUS=1 to test corpus_evolution or crashes directory.
#ifdef TEST_CORPUS
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't need to be part of the harness, it's better to put an argument for rerunning a corpus into lib.rs - then you don't need to recompile the target, either.

@domenukk
Copy link
Member

domenukk commented Dec 9, 2024

Not sure if it's different enough from existing examples, though?

@golem9247
Copy link
Contributor Author

As u want, it helped me as a setup

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.

2 participants