finclip-app-manager/vendor/github.com/eapache/go-xerial-snappy/fuzz.go

17 lines
211 B
Go
Raw Normal View History

2023-11-02 18:36:36 +08:00
// +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
}