whisper/whisperv6/fuzz.go
2019-11-12 14:54:50 -05:00

15 lines
175 B
Go

// +build gofuzz
package whisperv6
func Fuzz(data []byte) int {
if len(data) < 2 {
return -1
}
msg := &ReceivedMessage{Raw: data}
msg.ValidateAndParse()
return 0
}