mirror of https://github.com/google/oss-fuzz.git
13 lines
162 B
Go
13 lines
162 B
Go
|
// +build gofuzz
|
||
|
|
||
|
package exampleoc
|
||
|
|
||
|
func Fuzz(data []byte) int {
|
||
|
nd := &Device{}
|
||
|
err := Unmarshal([]byte(data), nd)
|
||
|
if err != nil {
|
||
|
return 0
|
||
|
}
|
||
|
return 1
|
||
|
}
|