blob: 6a46f4784e1194bfe68d1c6fd3181c8e1508b258 [file] [log] [blame]
Scott Bakereee8dd82019-09-24 12:52:34 -07001// +build gofuzz
2
3package snappy
4
5func Fuzz(data []byte) int {
6 decode, err := Decode(data)
7 if decode == nil && err == nil {
8 panic("nil error with nil result")
9 }
10
11 if err != nil {
12 return 0
13 }
14
15 return 1
16}