mirror of
https://github.com/distribution/distribution
synced 2024-11-06 19:35:52 +01:00
9337b8df66
Signed-off-by: AdamKorcz <adam@adalogics.com>
16 lines
273 B
Go
16 lines
273 B
Go
package configuration
|
|
|
|
import (
|
|
"bytes"
|
|
"testing"
|
|
)
|
|
|
|
// ParserFuzzer implements a fuzzer that targets Parser()
|
|
// nolint:deadcode
|
|
func FuzzConfigurationParse(f *testing.F) {
|
|
f.Fuzz(func(t *testing.T, data []byte) {
|
|
rd := bytes.NewReader(data)
|
|
_, _ = Parse(rd)
|
|
})
|
|
}
|