blob: 6a46f4784e1194bfe68d1c6fd3181c8e1508b258 [file] [log] [blame]
Matteo Scandolo9a2772a2018-11-19 14:56:26 -08001// +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}