Browse Source

v2: fuzz: update function signature of caddyfile.Parse (#3160)

master
Mohammed Al Sahaf 5 years ago
committed by GitHub
parent
commit
61b427fa47
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      caddyconfig/caddyfile/parse_fuzz.go

6
caddyconfig/caddyfile/parse_fuzz.go

@ -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…
Cancel
Save