miniflux-v2/vendor/github.com/andybalholm/cascadia/fuzz/fuzz.go
Frédéric Guillot 8ffb773f43 First commit
2017-11-19 22:01:46 -08:00

16 lines
282 B
Go

package fuzz
import "github.com/andybalholm/cascadia"
// Fuzz is the entrypoint used by the go-fuzz framework
func Fuzz(data []byte) int {
sel, err := cascadia.Compile(string(data))
if err != nil {
if sel != nil {
panic("sel != nil on error")
}
return 0
}
return 1
}