2022-11-02 21:05:45 +00:00
|
|
|
//go:build gofuzz
|
2021-07-20 15:24:20 +00:00
|
|
|
// +build gofuzz
|
|
|
|
|
|
|
|
package configuration
|
|
|
|
|
|
|
|
import (
|
|
|
|
"bytes"
|
|
|
|
)
|
|
|
|
|
|
|
|
// ParserFuzzer implements a fuzzer that targets Parser()
|
|
|
|
// Export before building
|
|
|
|
// nolint:deadcode
|
|
|
|
func parserFuzzer(data []byte) int {
|
|
|
|
rd := bytes.NewReader(data)
|
|
|
|
_, _ = Parse(rd)
|
|
|
|
return 1
|
|
|
|
}
|