blob: d1a46f8cb03c5a9124bb6ab4640b25fcf5c4975e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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
}
|