mirror of
				https://github.com/coredns/coredns.git
				synced 2025-11-03 18:53:13 -05: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
							 | 
						||
| 
								 | 
							
								}
							 |