diff options
Diffstat (limited to 'caddyconfig/caddyfile')
-rw-r--r-- | caddyconfig/caddyfile/parse_fuzz.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/caddyconfig/caddyfile/parse_fuzz.go b/caddyconfig/caddyfile/parse_fuzz.go index 3214e1d..8e8ea73 100644 --- a/caddyconfig/caddyfile/parse_fuzz.go +++ b/caddyconfig/caddyfile/parse_fuzz.go @@ -16,7 +16,12 @@ package caddyfile +import "bytes" + func FuzzParseCaddyfile(data []byte) (score int) { + if bytes.Contains(data, []byte("import")) { + return -1 + } sb, err := Parse("Caddyfile", data) if err != nil { // if both an error is received and some ServerBlocks, |