- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for NewConsumer (0.13 sec)
-
tests/fuzz/misc_fuzzers.go
func FuzzCheckIstioOperatorSpec(data []byte) int { f := fuzz.NewConsumer(data) ispec := &v1alpha1.IstioOperatorSpec{} err := f.GenerateStruct(ispec) if err != nil { return 0 } _ = validate.CheckIstioOperatorSpec(ispec, false) _ = validate.CheckIstioOperatorSpec(ispec, true) return 1 } func FuzzV1Alpha1ValidateConfig(data []byte) int { f := fuzz.NewConsumer(data) iop := &v1alpha1.IstioOperatorSpec{}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 23 02:26:59 UTC 2022 - 5.1K bytes - Viewed (0) -
tests/fuzz/kube_ingress_fuzzer.go
"istio.io/istio/pilot/pkg/config/kube/ingress" "istio.io/istio/pkg/config" "istio.io/istio/pkg/kube" "istio.io/istio/pkg/kube/kclient" ) func FuzzConvertIngressVirtualService(data []byte) int { f := fuzz.NewConsumer(data) ing := knetworking.Ingress{} err := f.GenerateStruct(&ing) if err != nil { return 0 } service := &corev1.Service{} cfgs := map[string]*config.Config{}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 15 16:18:19 UTC 2023 - 1.9K bytes - Viewed (0) -
tests/fuzz/pki_fuzzer.go
"istio.io/istio/security/pkg/pki/util" ) // FuzzVerifyCertificate implements a fuzzer // that tests util.VerifyCertificate func FuzzVerifyCertificate(data []byte) int { f := fuzz.NewConsumer(data) privPem, err := f.GetBytes() if err != nil { return 0 } certChainPem, err := f.GetBytes() if err != nil { return 0 } rootCertPem, err := f.GetBytes() if err != nil { return 0
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 05 14:00:25 UTC 2023 - 5.2K bytes - Viewed (0) -
tests/fuzz/security_fuzzer.go
"istio.io/istio/security/pkg/pki/util" "istio.io/istio/security/pkg/server/ca" "istio.io/istio/security/pkg/server/ca/authenticate" ) func FuzzGenCSR(data []byte) int { f := fuzz.NewConsumer(data) certOptions := util.CertOptions{} err := f.GenerateStruct(&certOptions) if err != nil { return 0 } _, _, _ = util.GenCSR(certOptions) return 1 }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 28 16:41:38 UTC 2024 - 3.2K bytes - Viewed (0) -
tests/fuzz/config_validation_fuzzer.go
"istio.io/istio/pkg/config/validation" "istio.io/istio/pkg/config/validation/envoyfilter" "istio.io/istio/pkg/kube" ) func FuzzConfigValidation(data []byte) int { f := fuzz.NewConsumer(data) configIndex, err := f.GetInt() if err != nil { return -1 } r := collections.Pilot.All()[configIndex%len(collections.Pilot.All())] gvk := r.GroupVersionKind() kgvk := schema.GroupVersionKind{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 00:31:03 UTC 2024 - 5.3K bytes - Viewed (0) -
pkg/kube/inject/fuzz_test.go
package inject import ( "testing" fuzz "github.com/AdaLogics/go-fuzz-headers" ) func FuzzRunTemplate(f *testing.F) { f.Fuzz(func(t *testing.T, data []byte, v string) { ff := fuzz.NewConsumer(data) // create injection parameters IP := InjectionParameters{} err := ff.GenerateStruct(&IP) if err != nil { return } if IP.pod == nil { return }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Oct 12 14:51:41 UTC 2022 - 1.1K bytes - Viewed (0) -
security/pkg/pki/ca/fuzz_test.go
package ca import ( "testing" "time" fuzz "github.com/AdaLogics/go-fuzz-headers" ) func FuzzIstioCASign(f *testing.F) { f.Fuzz(func(t *testing.T, data, csrPEM []byte) { ff := fuzz.NewConsumer(data) // create ca options opts := &IstioCAOptions{} err := ff.GenerateStruct(opts) if err != nil { return } ca, err := NewIstioCA(opts) if err != nil { return }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Oct 12 14:51:41 UTC 2022 - 1.2K bytes - Viewed (0) -
tests/fuzz/status_fuzzer.go
// status.ReconcileStatuses. It does so by inserting // pseudo-random vlues in the config and the progress // as well as pass a pseudo-random generation parameter. func FuzzReconcileStatuses(data []byte) int { f := fuzz.NewConsumer(data) current := &v1alpha1.IstioStatus{} err := f.GenerateStruct(current) if err != nil { return 0 } desired := distribution.Progress{} err = f.GenerateStruct(&desired) if err != nil { return 0
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 20 06:17:08 UTC 2022 - 1.3K bytes - Viewed (0) -
security/pkg/pki/ra/fuzz_test.go
package ra import ( "testing" fuzz "github.com/AdaLogics/go-fuzz-headers" ) func FuzzValidateCSR(f *testing.F) { f.Fuzz(func(t *testing.T, csrPEM, subjectIDsData []byte) { ff := fuzz.NewConsumer(subjectIDsData) // create subjectIDs subjectIDs := make([]string, 0) noOfEntries, err := ff.GetUint64() if err != nil { return } var i uint64 for i = 0; i < noOfEntries; i++ {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Oct 12 14:51:41 UTC 2022 - 1.1K bytes - Viewed (0) -
tests/fuzz/pilot_networking_fuzzer.go
package fuzz import ( fuzz "github.com/AdaLogics/go-fuzz-headers" "istio.io/istio/pilot/pkg/model" "istio.io/istio/pilot/pkg/networking/grpcgen" ) func FuzzGrpcGenGenerate(data []byte) int { f := fuzz.NewConsumer(data) proxy := &model.Proxy{} err := f.GenerateStruct(proxy) if err != nil { return 0 } if !proxy.FuzzValidate() { return 0 } w := &model.WatchedResource{} err = f.GenerateStruct(w)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Sep 07 03:26:36 UTC 2022 - 1.2K bytes - Viewed (0)