mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-09-02 23:58:04 -05:00
18 lines
215 B
Go
18 lines
215 B
Go
|
|
// +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
|
||
|
|
}
|