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

User exit callback feature? #69

Open
abol-karimi opened this issue Aug 18, 2023 · 2 comments
Open

User exit callback feature? #69

abol-karimi opened this issue Aug 18, 2023 · 2 comments

Comments

@abol-karimi
Copy link

Is it possible to give a callback that will be run at exit? I'm using custom mutators and crossovers, and I want to save their (random-number generators') state before Atheris exits. My goal is to be able to resume fuzzing from the saved state.

@jvoisin
Copy link
Collaborator

jvoisin commented Aug 18, 2023

It's not possible, but since you have the input of the fuzzer, you should be able to reconstruct all the states, shouldn't you?

@abol-karimi
Copy link
Author

Not sure what you mean by 'reconstruct'.

I run atheris with the max_total_time option, so I don't even know how many iterations will be run. I can wrap the callback functions (fuzz target, custom mutator, custom crossover) in callable objects which keep track of their state but then I have to save the state after each call of the fuzz target since I wouldn't know which iteration is the last one.

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