mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
13 lines
182 B
Go
13 lines
182 B
Go
|
|
// +build fuzz
|
||
|
|
|
||
|
|
package test
|
||
|
|
|
||
|
|
// Fuzz fuzzes a corefile.
|
||
|
|
func Fuzz(data []byte) int {
|
||
|
|
_, _, _, err := CoreDNSServerAndPorts(string(data))
|
||
|
|
if err != nil {
|
||
|
|
return 1
|
||
|
|
}
|
||
|
|
return 0
|
||
|
|
}
|