6c4344623b
The main HCL package is more visible this way, and so it's easier than having to pick it out from dozens of other package directories.
16 lines
194 B
Go
16 lines
194 B
Go
package fuzzconfig
|
|
|
|
import (
|
|
"github.com/hashicorp/hcl/v2/json"
|
|
)
|
|
|
|
func Fuzz(data []byte) int {
|
|
_, diags := json.Parse(data, "<fuzz-conf>")
|
|
|
|
if diags.HasErrors() {
|
|
return 0
|
|
}
|
|
|
|
return 1
|
|
}
|