mirror of
https://github.com/coredns/coredns.git
synced 2025-10-31 18:23:13 -04:00
fuzzing: allow setup function to be called (#3175)
This allows to fuzzing of more interesting targets that require setup. Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
@@ -15,7 +15,7 @@ func Fuzz(data []byte) int {
|
||||
zone, _ := Parse(strings.NewReader(fuzzMiekNL), name, "stdin", 0)
|
||||
f := File{Next: test.ErrorHandler(), Zones: Zones{Z: map[string]*Zone{name: zone}, Names: []string{name}}}
|
||||
|
||||
return fuzz.Do(f, data)
|
||||
return fuzz.Do(f, nil, data)
|
||||
}
|
||||
|
||||
const fuzzMiekNL = `
|
||||
|
||||
Reference in New Issue
Block a user