Mohammed Al Sahaf
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
caddyconfig/caddyfile/formatter_fuzz.go
|
@ -16,9 +16,11 @@ |
|
|
|
|
|
|
|
|
package caddyfile |
|
|
package caddyfile |
|
|
|
|
|
|
|
|
|
|
|
import "bytes" |
|
|
|
|
|
|
|
|
func FuzzFormat(input []byte) int { |
|
|
func FuzzFormat(input []byte) int { |
|
|
formatted := Format(input) |
|
|
formatted := Format(input) |
|
|
if formatted != Format(formatted) { |
|
|
if bytes.Equal(formatted, Format(formatted)) { |
|
|
return 1 |
|
|
return 1 |
|
|
} |
|
|
} |
|
|
return 0 |
|
|
return 0 |
|
|