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

Allow multiple parameters to be passed to fuzz_target macro #252

Closed
frewsxcv opened this issue Feb 26, 2021 · 2 comments
Closed

Allow multiple parameters to be passed to fuzz_target macro #252

frewsxcv opened this issue Feb 26, 2021 · 2 comments

Comments

@frewsxcv
Copy link
Member

I'm currently doing something like this to work around the one parameter limitation:

fuzz_target!(|tuple: (geo_types::Polygon<f32>, f32)| {
    let (polygon, epsilon) = tuple;

    let simplified = polygon.simplify(&epsilon);

    check_result(polygon, simplified);
});
@fitzgen
Copy link
Member

fitzgen commented Feb 26, 2021

Yeah, we could have the macro do this tuple dance for you, for sure.

@fitzgen
Copy link
Member

fitzgen commented May 10, 2021

Going to close this in favor of rust-fuzz/libfuzzer#77, since that issue is in the right repo.

@fitzgen fitzgen closed this as completed May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants