go-common/vendor/howett.net/plist/fuzz.go

18 lines
215 B
Go
Raw Permalink Normal View History

2019-04-22 10:59:20 +08:00
// +build gofuzz
package plist
import (
"bytes"
)
func Fuzz(data []byte) int {
buf := bytes.NewReader(data)
var obj interface{}
if err := NewDecoder(buf).Decode(&obj); err != nil {
return 0
}
return 1
}