policy-engine/pkg/chain/marshal_fuzz.go

14 lines
192 B
Go
Raw Permalink Normal View History

//go:build gofuzz
// +build gofuzz
package chain
func DoFuzzChainUnmarshalBinary(data []byte) int {
var ch Chain
err := ch.UnmarshalBinary(data)
if err != nil {
return 0
}
return 1
}