blob: 6a46f4784e1194bfe68d1c6fd3181c8e1508b258 [file] [log] [blame]
Holger Hildebrandtfa074992020-03-27 15:42:06 +00001// +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}