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

update to changed custom mutator API #1

Open
vanhauser-thc opened this issue Mar 24, 2020 · 1 comment
Open

update to changed custom mutator API #1

vanhauser-thc opened this issue Mar 24, 2020 · 1 comment

Comments

@vanhauser-thc
Copy link

Hi!

We changed the custom mutator API (and it will not be changed anymore, just expanded), maybe you will want to update your code state :)
https://github.com/AFLplusplus/AFLplusplus/blob/dev/docs/custom_mutators.md

Also do you still need a feature available to support?
If so please open an issue.

Regards,
Marc

Repository owner deleted a comment from andreafioraldi Apr 15, 2020
Repository owner deleted a comment from vanhauser-thc Apr 15, 2020
@domenukk
Copy link

With the current (rather stable, unless you find fatal flaws) API, you'd want to

  • add a afl_custom_init function, returning a ptr to your state
  • rename afl_custom_mutator to afl_custom_havoc_mutation and change the parameters accordingly
  • rename pre_save_handler to afl_custom_post_process (and change the parameters accordingly)
  • add a afl_custom_deinit function to clean up

Bonus points if all global state is instead kept in the state returned by _init.

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