Gitiles
Code Review
Sign In
gerrit.opencord.org
/
device-management
/
6c0bc754be355b9a1af0a6478e4b4cf7ed7f942d
/
.
/
vendor
/
github.com
/
eapache
/
go-xerial-snappy
/
fuzz.go
blob: 6a46f4784e1194bfe68d1c6fd3181c8e1508b258 [
file
] [
log
] [
blame
]
// +build gofuzz
package snappy
func Fuzz(data []byte) int {
decode, err := Decode(data)
if decode == nil && err == nil {
panic("nil error with nil result")
}
if err != nil {
return 0
}
return 1
}