Browse Source

Added a fuzzer

Signed-off-by: AdamKorcz <adam@adalogics.com>
pull/575/head
AdamKorcz 6 years ago
parent
commit
1b6b7331f6
  1. 9
      fuzz.go

9
fuzz.go

@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
package mux
func Fuzz(data []byte) int {
_, err := newRouteRegexp(string(data), regexpTypeHost, routeRegexpOptions{})
if err != nil {
return 0
}
return 1
}
Loading…
Cancel
Save