mirror of
https://github.com/FiloSottile/mkcert.git
synced 2025-10-14 00:41:40 +08:00
Initial commit and macOS install
This commit is contained in:
17
vendor/github.com/DHowett/go-plist/fuzz.go
generated
vendored
Normal file
17
vendor/github.com/DHowett/go-plist/fuzz.go
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
// +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
|
||||
}
|
Reference in New Issue
Block a user