diff options
author | 2019-08-24 18:13:47 +0000 | |
---|---|---|
committer | 2019-08-24 18:13:47 +0000 | |
commit | 62451fd3eb68cef5dcdafe6e4228f08cf52d84fc (patch) | |
tree | e13abb4d14790a81bbe1ad77f909000626c044f9 /plugin/file/fuzz.go | |
parent | 59e74eb15d31298f27b5bab7c02241e832de9dad (diff) | |
download | coredns-62451fd3eb68cef5dcdafe6e4228f08cf52d84fc.tar.gz coredns-62451fd3eb68cef5dcdafe6e4228f08cf52d84fc.tar.zst coredns-62451fd3eb68cef5dcdafe6e4228f08cf52d84fc.zip |
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>
Diffstat (limited to 'plugin/file/fuzz.go')
-rw-r--r-- | plugin/file/fuzz.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/file/fuzz.go b/plugin/file/fuzz.go index 84f5c1853..535db0e93 100644 --- a/plugin/file/fuzz.go +++ b/plugin/file/fuzz.go @@ -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 = ` |