Upgrade fuzzing-related packages to reduce dependencies
github.com/AdaLogics/go-fuzz-headers and github.com/AdamKorcz/go-118-fuzz-build have less dependencies in the last versions. Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
This commit is contained in:
8
vendor/github.com/AdamKorcz/go-118-fuzz-build/utils/test_helpers.go
generated
vendored
8
vendor/github.com/AdamKorcz/go-118-fuzz-build/utils/test_helpers.go
generated
vendored
@@ -158,6 +158,14 @@ func (f *F) Fuzz(ff any) {
|
||||
newFloat := reflect.New(v)
|
||||
newFloat.Elem().Set(reflect.ValueOf(randFloat))
|
||||
args = append(args, newFloat.Elem())
|
||||
case "bool":
|
||||
randBool, err := fuzzConsumer.GetBool()
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
newBool := reflect.New(v)
|
||||
newBool.Elem().Set(reflect.ValueOf(randBool))
|
||||
args = append(args, newBool.Elem())
|
||||
default:
|
||||
fmt.Println(v.String())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user