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 bindings for custom crossover with example #115

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

rchildre3
Copy link
Contributor

  • Expose LLVMFuzzerCustomCrossOver through fuzz_crossover macro.
  • example_crossover uses fuzz_mutator & fuzz_crossover

Closes #101

Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

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

Thanks! One request below before we merge this.

src/lib.rs Outdated Show resolved Hide resolved
@rchildre3
Copy link
Contributor Author

Changed the interface slightly to be more in line with that of fuzz_target! (i.e. omitting the size parameter as the slice encompasses the slice length)

Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM, just one minor nitpick before we can merge.

* Expose `LLVMFuzzerCustomCrossOver` through `fuzz_crossover` macro.
* `example_crossover` uses `fuzz_mutator` & `fuzz_crossover`
@rchildre3
Copy link
Contributor Author

Nit fixed

Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

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

Thanks!

@fitzgen fitzgen merged commit 9b8c0a7 into rust-fuzz:main Jan 22, 2024
1 check passed
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.

Feature Request: Expose LLVMFuzzerCustomCrossOver
2 participants