lambdaworks icon indicating copy to clipboard operation
lambdaworks copied to clipboard

Implement Arbritrary for all types

Open gluax opened this issue 2 years ago • 1 comments
trafficstars

Building from the ground up with fuzzing in mind is always beneficial to libraries, especially ones that define their own types.

Meaning the Arbitrary trait should be implemented for all types, maybe even on the features themselves. This way, setting up libFuzzer, cargo fuzz, or AFL is easy.

The standard approach is to add a feature gate arbitrary that reveals the Arbitrary trait implementations when enabled.

gluax avatar Feb 10 '23 01:02 gluax

I like this. Let's do it. Talking with the team

unbalancedparentheses avatar Feb 13 '23 17:02 unbalancedparentheses