diff options
author | 2019-08-24 18:13:47 +0000 | |
---|---|---|
committer | 2019-08-24 18:13:47 +0000 | |
commit | 62451fd3eb68cef5dcdafe6e4228f08cf52d84fc (patch) | |
tree | e13abb4d14790a81bbe1ad77f909000626c044f9 /plugin/cache/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/cache/fuzz.go')
-rw-r--r-- | plugin/cache/fuzz.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/cache/fuzz.go b/plugin/cache/fuzz.go index 9bf6cb3a9..401e9b166 100644 --- a/plugin/cache/fuzz.go +++ b/plugin/cache/fuzz.go @@ -8,5 +8,5 @@ import ( // Fuzz fuzzes cache. func Fuzz(data []byte) int { - return fuzz.Do(New(), data) + return fuzz.Do(New(), nil, data) } |