Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 227 for fuzz (0.22 sec)

  1. tests/fuzz/kube_crd_fuzzer.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package fuzz
    
    import (
    	fuzz "github.com/AdaLogics/go-fuzz-headers"
    
    	"istio.io/istio/pilot/pkg/config/kube/crd"
    	config2 "istio.io/istio/pkg/config"
    	"istio.io/istio/pkg/config/schema/collections"
    )
    
    // FuzzKubeCRD implements a fuzzer that targets
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 02 20:50:14 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  2. pkg/apis/policy/fuzzer/fuzzer.go

    */
    
    package fuzzer
    
    import (
    	fuzz "github.com/google/gofuzz"
    
    	runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
    	"k8s.io/kubernetes/pkg/apis/policy"
    )
    
    // Funcs returns the fuzzer functions for the policy api group.
    var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(s *policy.PodDisruptionBudgetStatus, c fuzz.Continue) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 20:44:13 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. pkg/apis/rbac/fuzzer/fuzzer.go

    */
    
    package fuzzer
    
    import (
    	fuzz "github.com/google/gofuzz"
    
    	runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
    	"k8s.io/kubernetes/pkg/apis/rbac"
    )
    
    // Funcs returns the fuzzer functions for the rbac api group.
    var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(r *rbac.RoleRef, c fuzz.Continue) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 11 07:12:57 UTC 2017
    - 1.6K bytes
    - Viewed (0)
  4. tests/fuzz/bootstrap_fuzzer.go

    // limitations under the License.
    
    // nolint: revive
    package fuzz
    
    import (
    	"os"
    	"time"
    
    	fuzz "github.com/AdaLogics/go-fuzz-headers"
    
    	"istio.io/istio/pilot/pkg/bootstrap"
    	"istio.io/istio/pkg/config/mesh"
    )
    
    func FuzzNewBootstrapServer(data []byte) int {
    	f := fuzz.NewConsumer(data)
    
    	// Create mesh config file
    	meshConfigFile, err := createRandomConfigFile(f)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 20 06:17:08 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/test_fuzz_cov.txt

    [short] skip
    [!fuzz-instrumented] skip
    env GOCACHE=$WORK/cache
    
    # TODO(#51484): enabled debugging info to help diagnose a deadlock in the fuzzer
    env GODEBUG=fuzzdebug=1
    ! go test -fuzz=FuzzCov -v
    ! stderr 'cov instrumentation working'
    
    -- go.mod --
    module test
    
    -- cov_test.go --
    package cov
    
    import "testing"
    
    func FuzzCov(f *testing.F) {
    	f.Fuzz(func(t *testing.T, b []byte) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 787 bytes
    - Viewed (0)
  6. pkg/apis/discovery/fuzzer/fuzzer.go

    var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(obj *discovery.EndpointSlice, c fuzz.Continue) {
    			c.FuzzNoCustom(obj) // fuzz self without calling this function again
    
    			addressTypes := []discovery.AddressType{discovery.AddressTypeIPv4, discovery.AddressTypeIPv6, discovery.AddressTypeFQDN}
    			obj.AddressType = addressTypes[c.Rand.Intn(len(addressTypes))]
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 12 17:03:53 UTC 2019
    - 1.6K bytes
    - Viewed (0)
  7. pkg/apis/storage/fuzzer/fuzzer.go

    var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(obj *storage.StorageClass, c fuzz.Continue) {
    			c.FuzzNoCustom(obj) // fuzz self without calling this function again
    			reclamationPolicies := []api.PersistentVolumeReclaimPolicy{api.PersistentVolumeReclaimDelete, api.PersistentVolumeReclaimRetain}
    			obj.ReclaimPolicy = &reclamationPolicies[c.Rand.Intn(len(reclamationPolicies))]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 13:32:38 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/round_trip_test.go

    package webhook
    
    import (
    	"math/rand"
    	"reflect"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	fuzz "github.com/google/gofuzz"
    
    	authorizationv1 "k8s.io/api/authorization/v1"
    	authorizationv1beta1 "k8s.io/api/authorization/v1beta1"
    )
    
    func TestRoundTrip(t *testing.T) {
    	f := fuzz.New()
    	seed := time.Now().UnixNano()
    	t.Logf("seed = %v", seed)
    	f.RandSource(rand.New(rand.NewSource(seed)))
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  9. src/internal/zstd/fuzz_test.go

    		f.Add([]byte(test.compressed))
    	}
    	for _, s := range badStrings {
    		f.Add([]byte(s))
    	}
    	f.Fuzz(func(t *testing.T, b []byte) {
    		r := NewReader(bytes.NewReader(b))
    		io.Copy(io.Discard, r)
    	})
    }
    
    // Fuzz test to verify that what we decompress is what we compress.
    // This isn't a great fuzz test because the fuzzer can't efficiently
    // explore the space of decompressor behavior, since it can't see
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 04:10:45 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  10. src/cmd/internal/test2json/testdata/framefuzz.test

    --- PASS: TestInlining (0.10s)
    === RUN   FuzzParse
    fuzz: elapsed: 0s, gathering baseline coverage: 0/390 completed
    fuzz: elapsed: 0s, gathering baseline coverage: 390/390 completed, now fuzzing with 16 workers
    fuzz: elapsed: 3s, execs: 438666 (146173/sec), new interesting: 12 (total: 402)
    fuzz: elapsed: 4s, execs: 558467 (147850/sec), new interesting: 15 (total: 405)
    --- PASS: FuzzParse (3.85s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 19:50:36 UTC 2022
    - 2.8K bytes
    - Viewed (0)
Back to top