mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 06:03:48 +03:00
v2: fuzz: update function signature of caddyfile.Parse (#3160)
This commit is contained in:
parent
42a6628935
commit
61b427fa47
1 changed files with 1 additions and 5 deletions
|
@ -17,12 +17,8 @@
|
|||
|
||||
package caddyfile
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
)
|
||||
|
||||
func FuzzParseCaddyfile(data []byte) (score int) {
|
||||
sb, err := Parse("Caddyfile", bytes.NewReader(data))
|
||||
sb, err := Parse("Caddyfile", data)
|
||||
if err != nil {
|
||||
// if both an error is received and some ServerBlocks,
|
||||
// then the parse was able to parse partially. Mark this
|
||||
|
|
Loading…
Reference in a new issue