mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
the major purpose of this PR is to update modules to their recent **minor version**. this is helpful in terms of having update functionalities and fixing some issues caused by non-up-to-date modules.
17 lines
211 B
Go
17 lines
211 B
Go
// +build gofuzz
|
|
|
|
package snappy
|
|
|
|
func Fuzz(data []byte) int {
|
|
decode, err := Decode(data)
|
|
if decode == nil && err == nil {
|
|
panic("nil error with nil result")
|
|
}
|
|
|
|
if err != nil {
|
|
return 0
|
|
}
|
|
|
|
return 1
|
|
}
|