super-graph/qcode/fuzz.go

15 lines
235 B
Go
Raw Permalink Normal View History

2019-04-19 03:08:14 +02:00
package qcode
// FuzzerEntrypoint for Fuzzbuzz
func FuzzerEntrypoint(data []byte) int {
2019-06-15 04:17:21 +02:00
//testData := string(data)
2019-04-19 03:08:14 +02:00
qcompile, _ := NewCompiler(Config{})
2019-06-15 04:17:21 +02:00
_, err := qcompile.Compile(data)
2019-04-19 03:08:14 +02:00
if err != nil {
return -1
}
return 0
}