mirror of
https://github.com/distribution/distribution.git
synced 2025-09-23 03:59:17 +00:00
Fuzzing: Rewrite existing fuzzers to native go fuzzers
Signed-off-by: AdamKorcz <adam@adalogics.com>
This commit is contained in:
14
reference/fuzz_test.go
Normal file
14
reference/fuzz_test.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package reference
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
// fuzzParseNormalizedNamed implements a fuzzer
|
||||
// that targets ParseNormalizedNamed
|
||||
// nolint:deadcode
|
||||
func FuzzParseNormalizedNamed(f *testing.F) {
|
||||
f.Fuzz(func(t *testing.T, data string) {
|
||||
_, _ = ParseNormalizedNamed(data)
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user