fzgen icon indicating copy to clipboard operation
fzgen copied to clipboard

autofuzzed errors for "Less(i,j int) bool" tend to be spurious

Open dr2chase opened this issue 4 years ago • 0 comments

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.

dr2chase avatar Dec 22 '21 16:12 dr2chase