Skip to content

Commit

Permalink
Failing Fuzz Case
Browse files Browse the repository at this point in the history
  • Loading branch information
frioux committed Oct 4, 2019
1 parent 288a433 commit 2c7fe8f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fuzz/fuzz.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package fuzz

func Fuzz(data []byte) int {
if len(data) < 1 {
return 0
}

return 1
}
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/frioux/leatherman
require (
github.com/BurntSushi/toml v0.3.1
github.com/PuerkitoBio/goquery v1.5.0
github.com/dvyukov/go-fuzz v0.0.0-00010101000000-000000000000 // indirect
github.com/frioux/yaml v0.0.0-20181016190607-99e7b284ccac
github.com/fsnotify/fsnotify v1.4.7
github.com/headzoo/surf v1.0.0
Expand All @@ -20,3 +21,5 @@ require (
)

go 1.13

replace github.com/dvyukov/go-fuzz => github.com/thepudds/go-fuzz v0.0.0-20190808141544-193030f1cb16
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/thepudds/go-fuzz v0.0.0-20190808141544-193030f1cb16 h1:O44GF3VuLJb8xGhki1tlhXVZSn1p0htqhTFbkRrmO98=
github.com/thepudds/go-fuzz v0.0.0-20190808141544-193030f1cb16/go.mod h1:5R6bITyg4jSRvNgZEgEdh5mQjWEZITz5SGkIr4PTgOA=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
Expand Down

0 comments on commit 2c7fe8f

Please sign in to comment.