blob: 6a46f4784e1194bfe68d1c6fd3181c8e1508b258 [file] [log] [blame]
Takahiro Suzukid7bf8202020-12-17 20:21:59 +09001// +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}