- Sort Score
- Result 10 results
- Languages All
Results 191 - 200 of 227 for fuzz (1.3 sec)
-
src/internal/fuzz/coverage.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package fuzz import ( "fmt" "math/bits" ) // ResetCoverage sets all of the counters for each edge of the instrumented // source code to 0. func ResetCoverage() { cov := coverage() clear(cov) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 18:23:49 UTC 2024 - 2.5K bytes - Viewed (0) -
src/internal/fuzz/minimize.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package fuzz import ( "reflect" ) func isMinimizable(t reflect.Type) bool { return t == reflect.TypeOf("") || t == reflect.TypeOf([]byte(nil)) } func minimizeBytes(v []byte, try func([]byte) bool, shouldStop func() bool) { tmp := make([]byte, len(v))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 07 21:15:51 UTC 2021 - 2.3K bytes - Viewed (0) -
src/archive/tar/fuzz_test.go
} _, err = w.Write(inp) if err != nil { f.Fatalf("failed to write file to archive: %s", err) } if err := w.Close(); err != nil { f.Fatalf("failed to write archive: %s", err) } f.Add(b.Bytes()) f.Fuzz(func(t *testing.T, b []byte) { r := NewReader(bytes.NewReader(b)) type file struct { header *Header content []byte } files := []file{} for { hdr, err := r.Next() if err == io.EOF {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 13 18:06:33 UTC 2022 - 2.2K bytes - Viewed (0) -
src/internal/fuzz/mutators_byteslice_test.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package fuzz import ( "bytes" "testing" ) type mockRand struct { values []int counter int b bool } func (mr *mockRand) uint32() uint32 { c := mr.values[mr.counter] mr.counter++ return uint32(c) } func (mr *mockRand) intn(n int) int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 19 18:23:43 UTC 2021 - 4.3K bytes - Viewed (0) -
src/cmd/go/internal/cache/default.go
const cacheREADME = `This directory holds cached build artifacts from the Go build system. Run "go clean -cache" if the directory is getting too large. Run "go clean -fuzzcache" to delete the fuzz cache. See golang.org to learn more about Go. ` // initDefaultCache does the work of finding the default cache // the first time Default is called. func initDefaultCache() { dir, _ := DefaultDir()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 3K bytes - Viewed (0) -
pkg/util/coverage/fake_test_deps.go
// which is called unconditionally when running tests. // //nolint:unused // U1000 see comment above, we know it's unused normally. type fakeTestDeps struct{} // https://go.dev/src/testing/fuzz.go#L88 // //nolint:unused // U1000 see comment above, we know it's unused normally. type corpusEntry = struct { Parent string Path string Data []byte Values []any Generation int
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 15:31:22 UTC 2024 - 3.5K bytes - Viewed (0) -
pkg/api/testing/conversion_test.go
) func BenchmarkPodConversion(b *testing.B) { apiObjectFuzzer := fuzzer.FuzzerFor(FuzzerFuncs, rand.NewSource(benchmarkSeed), legacyscheme.Codecs) items := make([]api.Pod, 4) for i := range items { apiObjectFuzzer.Fuzz(&items[i]) items[i].Spec.InitContainers = nil items[i].Status.InitContainerStatuses = nil } // add a fixed item items = append(items, benchmarkPod) width := len(items) scheme := legacyscheme.Scheme
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Oct 30 06:49:09 UTC 2021 - 3.9K bytes - Viewed (0) -
src/internal/fuzz/pcg.go
// Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package fuzz import ( "math/bits" "os" "strconv" "strings" "sync/atomic" "time" ) type mutatorRand interface { uint32() uint32 intn(int) int uint32n(uint32) uint32 exp2() int bool() bool save(randState, randInc *uint64)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:28:14 UTC 2024 - 3.3K bytes - Viewed (0) -
src/internal/trace/reader_test.go
// Currently disabled because the parser doesn't do much validation and most // getters can be made to panic. Turn this on once the parser is meant to // reject invalid traces. const testGetters = false f.Fuzz(func(t *testing.T, b []byte) { r, err := trace.NewReader(bytes.NewReader(b)) if err != nil { return } for { ev, err := r.ReadEvent() if err != nil { break } if !testGetters {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 3.7K bytes - Viewed (0) -
CODEOWNERS
/pkg/spiffe/ @istio/wg-security-maintainers /pkg/test/ @istio/wg-test-and-release-maintainers /pkg/fuzz/ @istio/wg-test-and-release-maintainers /pkg/tracing/ @istio/wg-policies-and-telemetry-maintainers
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 22 19:22:33 UTC 2024 - 7.2K bytes - Viewed (0)