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