mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
Fuzzing: add more fuzzing targets (#2402)
* Add more fuzzing Signed-off-by: Miek Gieben <miek@miek.nl> * More fuzzing targets Signed-off-by: Miek Gieben <miek@miek.nl> * Fuzzing: add more fuzzing targets Also add Corefile fuzzing. Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
12
test/fuzz_corefile.go
Normal file
12
test/fuzz_corefile.go
Normal file
@@ -0,0 +1,12 @@
|
||||
// +build fuzz
|
||||
|
||||
package test
|
||||
|
||||
// Fuzz fuzzes a corefile.
|
||||
func Fuzz(data []byte) int {
|
||||
_, _, _, err := CoreDNSServerAndPorts(string(data))
|
||||
if err != nil {
|
||||
return 1
|
||||
}
|
||||
return 0
|
||||
}
|
||||
Reference in New Issue
Block a user