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
16
configuration/fuzz.go
Normal file
16
configuration/fuzz.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
// +build gofuzz
|
||||
|
||||
package configuration
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
)
|
||||
|
||||
// ParserFuzzer implements a fuzzer that targets Parser()
|
||||
// Export before building
|
||||
// nolint:deadcode
|
||||
func parserFuzzer(data []byte) int {
|
||||
rd := bytes.NewReader(data)
|
||||
_, _ = Parse(rd)
|
||||
return 1
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue