hcl/json/fuzz/config/fuzz.go

16 lines
194 B
Go
Raw Normal View History

2018-02-17 05:18:25 +00:00
package fuzzconfig
import (
"github.com/hashicorp/hcl/v2/json"
2018-02-17 05:18:25 +00:00
)
func Fuzz(data []byte) int {
_, diags := json.Parse(data, "<fuzz-conf>")
if diags.HasErrors() {
return 0
}
return 1
}