Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for NewConsumer (0.2 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. pilot/pkg/networking/core/loadbalancer/fuzz_test.go

    	"istio.io/api/networking/v1alpha3"
    )
    
    func FuzzApplyLocalityLBSetting(f *testing.F) {
    	f.Fuzz(func(t *testing.T, data []byte) {
    		ff := fuzz.NewConsumer(data)
    		proxyLabels := make(map[string]string)
    		err := ff.FuzzMap(&proxyLabels)
    		if err != nil {
    			return
    		}
    		wrappedLocalityLbEndpoints := make([]*WrappedLocalityLbEndpoints, 0)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 23 05:38:57 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. tests/fuzz/v1alpha3_fuzzer.go

    		if sr == nil {
    			return errors.New("a ServiceRegistry was nil")
    		}
    	}
    	return nil
    }
    
    func FuzzValidateClusters(data []byte) int {
    	proxy := model.Proxy{}
    	f := fuzz.NewConsumer(data)
    	to := core.TestOptions{}
    	err := f.GenerateStruct(&to)
    	if err != nil {
    		return 0
    	}
    	err = ValidateTestOptions(to)
    	if err != nil {
    		return 0
    	}
    	err = f.GenerateStruct(&proxy)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top