Fuzzing: Add 3 fuzzers
Signed-off-by: AdamKorcz <adam@adalogics.com>
This commit is contained in:
parent
01f589cf87
commit
d0ca0c3303
4 changed files with 49 additions and 0 deletions
12
reference/fuzz.go
Normal file
12
reference/fuzz.go
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue