mirror of
https://github.com/status-im/whisper.git
synced 2025-02-24 08:28:06 +00:00
15 lines
175 B
Go
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
|
||
|
}
|