forked from TrueCloudLab/distribution
d0ca0c3303
Signed-off-by: AdamKorcz <adam@adalogics.com>
16 lines
261 B
Go
16 lines
261 B
Go
// +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
|
|
}
|