fzgen
fzgen copied to clipboard
autofuzzed errors for "Less(i,j int) bool" tend to be spurious
Not sure if this counts as a bug (I am torturing fzgen in ways you might not have imagined -- I automated it against the benchmarks in the "bent" collection), but if a type has a Less(i,j int) bool method (for sorting, e.g.) it's pretty easy for random values of i and j to trigger a range panic. For example: https://github.com/Masterminds/semver/blob/master/collection.go#L16.
The bent-fuzz experiment is also a work-in-process; in particular, it lacks documentation.