go-fuzz icon indicating copy to clipboard operation
go-fuzz copied to clipboard

rm -r gen

Open josharian opened this issue 6 years ago • 1 comments

I can't find anywhere that gen/main.go is used. Is it vestigial? If so, I'll send a PR to remove it. If not, I'd like to document it.

josharian avatar Jan 06 '19 20:01 josharian

Here is a use: https://github.com/dvyukov/go-fuzz-corpus/blob/master/png/gen/main.go It's meant as a helper package to populate corpus with some random valid inputs. There is also https://github.com/dvyukov/go-fuzz-corpus/blob/master/protobuf/gen/gen.go that does the same, but does not use the gen package. I think I had more but they are not checked in.

Maybe a more handy interface would be to support a function in the package containing the Fuzz function that will generate inputs. Then go-fuzz could call it periodically to generate new inputs online.

dvyukov avatar Jan 07 '19 05:01 dvyukov