I've been playing around with this fuzz test:
func FuzzFuzzer(f *testing.F) {
f.Fuzz(func(t *testing.T, x int, s string) {
b := []byte(s)
if bytes.Contains(b, strconv.AppendInt(nil, int64(x), 10)) {
t.Errorf("minimize this! %d, len(s)=%d", x, len(s))
}
})
}
I've noticed that sometimes it is writing a crash that doesn't actually reproduce an error when re-run with go test. My guess is that this is a minimization issue, since I haven't been able to reproduce this bug when I set -fuzzminimizetime=0.
Still trying to figure out where the bug was introduced and why none of our tests are catching it.
/cc @golang/fuzzing
I've been playing around with this fuzz test:
I've noticed that sometimes it is writing a crash that doesn't actually reproduce an error when re-run with
go test. My guess is that this is a minimization issue, since I haven't been able to reproduce this bug when I set-fuzzminimizetime=0.Still trying to figure out where the bug was introduced and why none of our tests are catching it.
/cc @golang/fuzzing