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
reference/fuzz.go Normal file
View file

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