Fuzzing: Add 3 fuzzers

Signed-off-by: AdamKorcz <adam@adalogics.com>
This commit is contained in:
AdamKorcz
2021-07-20 16:24:20 +01:00
parent 01f589cf87
commit d0ca0c3303
4 changed files with 49 additions and 0 deletions

12
registry/api/v2/fuzz.go Normal file
View File

@@ -0,0 +1,12 @@
// +build gofuzz
package v2
// FuzzParseForwardedHeader implements a fuzzer
// that targets parseForwardedHeader
// Export before building
// nolint:deadcode
func fuzzParseForwardedHeader(data []byte) int {
_, _, _ = parseForwardedHeader(string(data))
return 1
}