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

Target function #393

Open
mineechor opened this issue Nov 1, 2022 · 2 comments
Open

Target function #393

mineechor opened this issue Nov 1, 2022 · 2 comments

Comments

@mineechor
Copy link

Why does winafl target function have to finish opening and closing testcase(files) when afl does not have to manually specify object functions?

@ifratric
Copy link
Collaborator

ifratric commented Nov 1, 2022

That is because WinAFL uses persistent mode, meaning it does not restart the target process between iterations. WinAFL uses dynamic binary instrumentation to get coverage. Instrumenting the process initially is expensive, however that is the price you only have to pay once per process. That's why, instead of restarting the process for every iteration, WinAFL runs the user-specified target function in a loop. In order for that to work, the target function must behave in a relatively standalone way and have the requirements you mentioned.

@mineechor
Copy link
Author

mineechor commented Nov 3, 2022 via email

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