lightwalletd/parser/fuzz.go

16 lines
354 B
Go
Raw Normal View History

2020-03-12 10:57:02 -07:00
// Copyright (c) 2019-2020 The Zcash developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php .
2018-11-07 13:01:20 -08:00
// +build gofuzz
package parser
func Fuzz(data []byte) int {
block := NewBlock()
_, err := block.ParseFromSlice(data)
if err != nil {
return 0
}
return 1
}