Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
v2: fuzz: update function signature of caddyfile.Parse (#3160)
Mohammed Al Sahaf committed
Mar 20, 2020 at 15:56 UTC
61b427fa47b93e9d3d11eda7fa4a8c551fc69f1e
1 file changed
+1
-5
caddyconfig/caddyfile/parse_fuzz.go
+1
-5
@@ -17,12 +17,8 @@
17
18
package caddyfile
19
20
-import (
21
- "bytes"
22
-)
23
-
20
func FuzzParseCaddyfile(data []byte) (score int) {
25
- sb, err := Parse("Caddyfile", bytes.NewReader(data))
21
+ sb, err := Parse("Caddyfile", data)
22
if err != nil {
23
// if both an error is received and some ServerBlocks,
24
// then the parse was able to parse partially. Mark this