repo
stringlengths
6
47
file_url
stringlengths
77
269
file_path
stringlengths
5
186
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-07 08:35:43
2026-01-07 08:55:24
truncated
bool
2 classes
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/pkg/oraclert/output/output_test.go
pkg/oraclert/output/output_test.go
package output import ( "gfuzz/pkg/utils/hash" "sort" "testing" ) func TestOutputHashEq1(t *testing.T) { o1 := &Output{ Tuples: map[uint32]uint32{}, Channels: map[string]ChanRecord{}, Ops: []uint16{}, Selects: []SelectRecord{ { Cases: 1, Chosen: 0, ID: "abc.go:1", }, }, } ...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/pkg/selefcm/inorder.go
pkg/selefcm/inorder.go
package selefcm import ( "sync/atomic" ) // SelectCaseInOrder will return case number according to the inputs' order. type SelectCaseInOrder struct { // id2Cr is map from: select identifer (filname + line number) => case recorder // We don't need to add mutex is here since it aims to be read-only after initializat...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/pkg/selefcm/inorder_test.go
pkg/selefcm/inorder_test.go
package selefcm import ( "testing" ) func TestNewSelectCaseInOrderHappy(t *testing.T) { inputs := []SelEfcm{ { ID: "abc.go:1", Case: 0, }, { ID: "abc.go:1", Case: 1, }, { ID: "abc.go:1", Case: 2, }, } strat := NewSelectCaseInOrder(inputs) cr, exist := strat.id2Cr["abc.go:1"] ...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/pkg/selefcm/type.go
pkg/selefcm/type.go
package selefcm // SelectCaseStrategy defines the interface for guiding select case during application running // It tries to provide answer to question 'when application reach the select at given file and line, which case it should choose' // This functionality expected to be cooperated with instrumentation. type Sel...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/cmd/inst/flags.go
cmd/inst/flags.go
package main import ( "os" flags "github.com/jessevdk/go-flags" ) var opts struct { Passes []string `long:"pass" description:"A list of passes you want to use in this instrumentation"` Dir string `long:"dir" description:"Instrument all go source files under this directory"` File string `long:"fil...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/cmd/inst/handle.go
cmd/inst/handle.go
package main import ( "gfuzz/pkg/inst" "gfuzz/pkg/utils/gofmt" "io/ioutil" "log" "sync/atomic" ) func HandleSrcFile(src string, reg *inst.PassRegistry, passes []string) error { iCtx, err := inst.NewInstContext(src) if err != nil { return err } err = inst.Run(iCtx, reg, passes) if err != nil { return er...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/cmd/inst/glob.go
cmd/inst/glob.go
package main import ( "strings" "gfuzz/pkg/utils/fs" ) func listGoSrcByDir(dir string) ([]string, error) { ptn := dir if !strings.HasSuffix(dir, "/") { ptn = dir + "/" } ptn = ptn + "**/*.go" return fs.ListFilesByGlob(ptn) }
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/cmd/inst/main.go
cmd/inst/main.go
package main import ( "fmt" "gfuzz/pkg/inst" "gfuzz/pkg/inst/pass" "gfuzz/pkg/inst/stats" "gfuzz/pkg/utils/fs" "log" "os" "runtime/pprof" ) var ( Version string Build string numOfHandled uint32 ) func main() { parseFlags() if opts.CPUProfile != "" { f, err := os.Create(opts.CPUProfile) ...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/cmd/fuzzer/flags.go
cmd/fuzzer/flags.go
package main import ( "os" flags "github.com/jessevdk/go-flags" ) var opts struct { // Fuzzing Target GoModDir string `long:"gomod" description:"Directory contains go.mod"` TestFunc []string `long:"func" description:"Only run specific test function in the test"` TestPkg []string `long:"pkg" des...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/cmd/fuzzer/logger.go
cmd/fuzzer/logger.go
package main const ( GFUZZ_LOG_FILE = "fuzzer.log" )
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/cmd/fuzzer/main.go
cmd/fuzzer/main.go
package main import ( "fmt" "gfuzz/pkg/fuzz/api" "gfuzz/pkg/fuzz/config" "gfuzz/pkg/fuzz/interest" "gfuzz/pkg/fuzz/score" "gfuzz/pkg/fuzzer" gLog "gfuzz/pkg/fuzzer/log" "gfuzz/pkg/gexec" ortconfig "gfuzz/pkg/oraclert/config" "gfuzz/pkg/utils/arr" "io/ioutil" "log" "os" "path/filepath" ) var ( Version s...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/docker/builder/leakcheck.go
docker/builder/leakcheck.go
/* * * Copyright 2017 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/docker/builder/leakcheck-allow-oracle.go
docker/builder/leakcheck-allow-oracle.go
/* * * Copyright 2017 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/runtime/myoracle.go
patch/runtime/myoracle.go
package runtime import "sync/atomic" func init() { MapChToChanInfo = make(map[interface{}]PrimInfo) } var GlobalEnableOracle = gogetenv("ORACLERT_NOORACLE") != "1" // during benchmark, we don't need to print bugs to stdout var BoolReportBug = gogetenv("ORACLERT_BENCHMARK") != "1" var BoolDelayCheck = true var MuR...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/runtime/proc.go
patch/runtime/proc.go
// Copyright 2014 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 runtime import ( "internal/bytealg" "internal/cpu" "runtime/internal/atomic" "runtime/internal/sys" "unsafe" ) var buildVersion = sys.TheVersion ...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
true
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/runtime/select.go
patch/runtime/select.go
// Copyright 2009 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 runtime // This file contains the implementation of Go select statements. import ( "runtime/internal/atomic" "unsafe" ) const debugSelect = false ...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/runtime/myselect.go
patch/runtime/myselect.go
package runtime import "sync/atomic" var MapSelectInfo map[string]SelectInfo // useful only when RecordSelectChoice is true //var MapInput map[string]SelectInfo // useful only when RecordSelectChoice is false var RecordSelectChoice bool = true // by default is true, we need to collect if new select has been found var...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/runtime/myoracle_tmp.go
patch/runtime/myoracle_tmp.go
package runtime // A temporary oracle for fuzzer // Deprecated: //func TmpDumpBlockingInfo() (retStr string, foundBug bool) { // retStr = "" // foundBug = false // SleepMS(500) // lock(&muMap) //outer: // for gid, strInfo := range mys.mpGoID2Info { // if gid != 1 { // No need to print the main goroutine // str := s...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/runtime/myutils.go
patch/runtime/myutils.go
package runtime import ( "internal/bytealg" "math/bits" ) func GoID() int64 { return getg().goid } func SleepMS(numMs int) { durationMS := 1000 for i := 0; i < numMs; i++ { usleep(uint32(durationMS)) // seems usleep can at most sleep for 10ms } } func Byte_to_Uint16(b []byte) uint16 { return uint16(b[1]) |...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/runtime/myrecord.go
patch/runtime/myrecord.go
package runtime import ( "sync/atomic" ) const MaxRecordElem int = 65536 // 2^16 // Settings: var BoolRecord bool = true var BoolRecordPerCh bool = gogetenv("BitGlobalTuple") == "0" var BoolRecordSDK bool = gogetenv("GF_SCORE_SDK") == "1" var BoolRecordTrad bool = gogetenv("GF_SCORE_TRAD") == "1" // TODO: importan...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/runtime/runtime2.go
patch/runtime/runtime2.go
// Copyright 2009 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 runtime import ( "internal/cpu" "runtime/internal/atomic" "runtime/internal/sys" "unsafe" ) // defined constants const ( // G status // // Beyo...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
true
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/runtime/chan.go
patch/runtime/chan.go
// Copyright 2014 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 runtime // This file contains the implementation of Go channels. // Invariants: // At least one of c.sendq and c.recvq is empty, // except for the c...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/time.go
patch/time/time.go
// Copyright 2009 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 time provides functionality for measuring and displaying time. // // The calendrical calculations always assume a Gregorian calendar, with // no leap...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
true
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/zoneinfo_windows_test.go
patch/time/zoneinfo_windows_test.go
// Copyright 2013 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 time_test import ( "internal/syscall/windows/registry" "testing" . "time" ) func testZoneAbbr(t *testing.T) { t1 := Now() // discard nsec t1 = D...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/zoneinfo_ios.go
patch/time/zoneinfo_ios.go
// Copyright 2015 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. // +build ios package time import ( "runtime" "syscall" ) var zoneSources = []string{ getZoneRoot() + "/zoneinfo.zip", } func getZoneRoot() string { // ...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/export_windows_test.go
patch/time/export_windows_test.go
// Copyright 2013 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 time func ForceAusFromTZIForTesting() { ResetLocalOnceForTest() localOnce.Do(func() { initLocalFromTZI(&aus) }) } func ForceUSPacificFromTZIForTesti...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/time_test.go
patch/time/time_test.go
// Copyright 2009 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 time_test import ( "bytes" "encoding/gob" "encoding/json" "fmt" "math/big" "math/rand" "os" "runtime" "strings" "sync" "testing" "testing/q...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
true
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/embed.go
patch/time/embed.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. // This file is used with build tag timetzdata to embed tzdata into // the binary. // +build timetzdata package time import _ "time/tzdata"
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/zoneinfo_test.go
patch/time/zoneinfo_test.go
// Copyright 2014 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 time_test import ( "errors" "fmt" "os" "reflect" "testing" "time" ) func init() { if time.ZoneinfoForTesting() != nil { panic(fmt.Errorf("zon...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/zoneinfo_unix.go
patch/time/zoneinfo_unix.go
// Copyright 2009 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. // +build aix darwin,!ios dragonfly freebsd linux,!android netbsd openbsd solaris // Parse "zoneinfo" time zone file. // This is a fairly standard file format ...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/tick.go
patch/time/tick.go
// Copyright 2009 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 time import "errors" // A Ticker holds a channel that delivers ``ticks'' of a clock // at intervals. type Ticker struct { C <-chan Time // The channe...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/sleep.go
patch/time/sleep.go
// Copyright 2009 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 time var DurDivideBy int = 1 // Used in NewTimer, Timer.Reset, After, AfterFunc // Sleep pauses the current goroutine for at least the duration d. // ...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/genzabbrs.go
patch/time/genzabbrs.go
// Copyright 2013 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. // +build ignore // // usage: // // go run genzabbrs.go -output zoneinfo_abbrs_windows.go // package main import ( "bytes" "encoding/xml" "flag" "go/form...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/zoneinfo.go
patch/time/zoneinfo.go
// Copyright 2011 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 time import ( "errors" "sync" "syscall" ) //go:generate env ZONEINFO=$GOROOT/lib/time/zoneinfo.zip go run genzabbrs.go -output zoneinfo_abbrs_windo...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/zoneinfo_android.go
patch/time/zoneinfo_android.go
// Copyright 2016 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. // Parse the "tzdata" packed timezone file used on Android. // The format is lifted from ZoneInfoDB.java and ZoneInfo.java in // java/libcore/util in the AOSP. ...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/mono_test.go
patch/time/mono_test.go
// Copyright 2017 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 time_test import ( "strings" "testing" . "time" ) func TestHasMonotonicClock(t *testing.T) { yes := func(expr string, tt Time) { if GetMono(&tt)...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/zoneinfo_read.go
patch/time/zoneinfo_read.go
// Copyright 2009 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. // Parse "zoneinfo" time zone file. // This is a fairly standard file format used on OS X, Linux, BSD, Sun, and others. // See tzfile(5), https://en.wikipedia.o...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/zoneinfo_js.go
patch/time/zoneinfo_js.go
// Copyright 2018 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. // +build js,wasm package time import ( "runtime" "syscall/js" ) var zoneSources = []string{ "/usr/share/zoneinfo/", "/usr/share/lib/zoneinfo/", "/usr/l...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/zoneinfo_plan9.go
patch/time/zoneinfo_plan9.go
// Copyright 2011 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. // Parse Plan 9 timezone(2) files. package time import ( "runtime" "syscall" ) var zoneSources = []string{ runtime.GOROOT() + "/lib/time/zoneinfo.zip", } ...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/tzdata_test.go
patch/time/tzdata_test.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 time_test import ( "reflect" "testing" "time" _ "time/tzdata" ) var zones = []string{ "Asia/Jerusalem", "America/Los_Angeles", } func TestEmbed...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/export_android_test.go
patch/time/export_android_test.go
// Copyright 2016 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 time func ForceAndroidTzdataForTest(tzdata bool) { forceZipFileForTesting(false) if tzdata { zoneSources = zoneSources[:len(zoneSources)-1] } }
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/zoneinfo_unix_test.go
patch/time/zoneinfo_unix_test.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. // +build aix darwin,!ios dragonfly freebsd linux,!android netbsd openbsd solaris package time_test import ( "os" "testing" "time" ) func TestEnvTZUsage(t...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/format.go
patch/time/format.go
// Copyright 2010 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 time import "errors" // These are predefined layouts for use in Time.Format and time.Parse. // The reference time used in the layouts is the specific ...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
true
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/tick_test.go
patch/time/tick_test.go
// Copyright 2009 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 time_test import ( "fmt" "runtime" "testing" . "time" ) func TestTicker(t *testing.T) { // We want to test that a ticker takes as much time as ex...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/sys_plan9.go
patch/time/sys_plan9.go
// Copyright 2011 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. // +build plan9 package time import ( "errors" "syscall" ) // for testing: whatever interrupts a sleep func interrupt() { // cannot predict pid, don't wan...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/example_test.go
patch/time/example_test.go
// Copyright 2011 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 time_test import ( "fmt" "time" ) func expensiveCall() {} func ExampleDuration() { t0 := time.Now() expensiveCall() t1 := time.Now() fmt.Printf...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/zoneinfo_windows.go
patch/time/zoneinfo_windows.go
// Copyright 2009 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 time import ( "errors" "internal/syscall/windows/registry" "runtime" "syscall" ) var zoneSources = []string{ runtime.GOROOT() + "/lib/time/zonein...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/zoneinfo_android_test.go
patch/time/zoneinfo_android_test.go
// Copyright 2016 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 time_test import ( "testing" . "time" ) func TestAndroidTzdata(t *testing.T) { ForceAndroidTzdataForTest(true) defer ForceAndroidTzdataForTest(fal...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/sleep_test.go
patch/time/sleep_test.go
// Copyright 2009 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 time_test import ( "errors" "fmt" "runtime" "strings" "sync" "sync/atomic" "testing" . "time" ) // Go runtime uses different Windows timers fo...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/sys_windows.go
patch/time/sys_windows.go
// Copyright 2011 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 time import ( "errors" "syscall" ) // for testing: whatever interrupts a sleep func interrupt() { } func open(name string) (uintptr, error) { fd, ...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/sys_unix.go
patch/time/sys_unix.go
// Copyright 2011 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. // +build aix darwin dragonfly freebsd js,wasm linux netbsd openbsd solaris package time import ( "errors" "syscall" ) // for testing: whatever interrupts ...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/format_test.go
patch/time/format_test.go
// Copyright 2009 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 time_test import ( "fmt" "strconv" "strings" "testing" "testing/quick" . "time" ) var nextStdChunkTests = []string{ "(2006)-(01)-(02)T(15):(04)...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/internal_test.go
patch/time/internal_test.go
// Copyright 2011 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 time func init() { // force US/Pacific for time zone tests ForceUSPacificForTesting() } func initTestingZone() { z, err := loadLocation("America/Lo...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/zoneinfo_abbrs_windows.go
patch/time/zoneinfo_abbrs_windows.go
// Copyright 2013 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. // Code generated by genzabbrs.go; DO NOT EDIT. // Based on information from https://raw.githubusercontent.com/unicode-org/cldr/master/common/supplemental/windo...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/export_test.go
patch/time/export_test.go
// Copyright 2013 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 time import ( "sync" ) func ResetLocalOnceForTest() { localOnce = sync.Once{} localLoc = Location{} } func ForceUSPacificForTesting() { ResetLoca...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/tzdata/tzdata.go
patch/time/tzdata/tzdata.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. //go:generate go run generate_zipdata.go // Package tzdata provides an embedded copy of the timezone database. // If this package is imported anywhere in the p...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/tzdata/zipdata.go
patch/time/tzdata/zipdata.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. // Code generated by generate_zipdata. DO NOT EDIT. // This file contains an embedded zip archive that contains time zone // files compiled using the code and ...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
true
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/time/tzdata/generate_zipdata.go
patch/time/tzdata/generate_zipdata.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. // +build ignore // This program generates zipdata.go from $GOROOT/lib/time/zoneinfo.zip. package main import ( "bufio" "fmt" "os" "strconv" ) // header ...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/reflect/value.go
patch/reflect/value.go
// Copyright 2009 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 reflect import ( "internal/unsafeheader" "math" "runtime" "unsafe" ) const ptrSize = 4 << (^uintptr(0) >> 63) // unsafe.Sizeof(uintptr(0)) but an ...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
true
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/waitgroup_test.go
patch/sync/waitgroup_test.go
// Copyright 2011 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 sync_test import ( "internal/race" "runtime" . "sync" "sync/atomic" "testing" ) func testWaitGroup(t *testing.T, wg1 *WaitGroup, wg2 *WaitGroup) ...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/rwmutex.go
patch/sync/rwmutex.go
// Copyright 2009 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 sync import ( "internal/race" "runtime" "sync/atomic" "unsafe" ) // There is a modified copy of this file in runtime/rwmutex.go. // If you make an...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/mutex_test.go
patch/sync/mutex_test.go
// Copyright 2009 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. // GOMAXPROCS=10 go test package sync_test import ( "fmt" "internal/testenv" "os" "os/exec" "runtime" "strings" . "sync" "testing" "time" ) func Ham...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/map_test.go
patch/sync/map_test.go
// Copyright 2016 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 sync_test import ( "math/rand" "reflect" "runtime" "sync" "sync/atomic" "testing" "testing/quick" ) type mapOp string const ( opLoad ...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/cond_test.go
patch/sync/cond_test.go
// Copyright 2011 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 sync_test import ( "reflect" "runtime" . "sync" "testing" "time" ) func TestCondSignal(t *testing.T) { var m Mutex c := NewCond(&m) n := 2 ru...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/map_bench_test.go
patch/sync/map_bench_test.go
// Copyright 2016 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 sync_test import ( "fmt" "reflect" "sync" "sync/atomic" "testing" ) type bench struct { setup func(*testing.B, mapInterface) perG func(b *test...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/rwmutex_test.go
patch/sync/rwmutex_test.go
// Copyright 2009 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. // GOMAXPROCS=10 go test package sync_test import ( "fmt" "runtime" . "sync" "sync/atomic" "testing" ) // There is a modified copy of this file in runti...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/example_pool_test.go
patch/sync/example_pool_test.go
// Copyright 2016 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 sync_test import ( "bytes" "io" "os" "sync" "time" ) var bufPool = sync.Pool{ New: func() interface{} { // The Pool's New function should gene...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/pool_test.go
patch/sync/pool_test.go
// Copyright 2013 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. // Pool is no-op under race detector, so all these tests do not work. // +build !race package sync_test import ( "runtime" "runtime/debug" "sort" . "sync"...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/poolqueue.go
patch/sync/poolqueue.go
// Copyright 2019 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 sync import ( "sync/atomic" "unsafe" ) // poolDequeue is a lock-free fixed-size single-producer, // multi-consumer queue. The single producer can bo...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/mutex.go
patch/sync/mutex.go
// Copyright 2009 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 sync provides basic synchronization primitives such as mutual // exclusion locks. Other than the Once and WaitGroup types, most are intended // for u...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/runtime2_lockrank.go
patch/sync/runtime2_lockrank.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. // +build goexperiment.staticlockranking package sync import "unsafe" // Approximation of notifyList in runtime/sema.go. Size and alignment must // agree. ty...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/map_reference_test.go
patch/sync/map_reference_test.go
// Copyright 2016 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 sync_test import ( "sync" "sync/atomic" ) // This file contains reference map implementations for unit-tests. // mapInterface is the interface Map ...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/map.go
patch/sync/map.go
// Copyright 2016 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 sync import ( "sync/atomic" "unsafe" ) // Map is like a Go map[interface{}]interface{} but is safe for concurrent use // by multiple goroutines with...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/runtime_sema_test.go
patch/sync/runtime_sema_test.go
// Copyright 2009 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 sync_test import ( "runtime" . "sync" "testing" ) func BenchmarkSemaUncontended(b *testing.B) { type PaddedSem struct { sem uint32 pad [32]uin...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/waitgroup.go
patch/sync/waitgroup.go
// Copyright 2011 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 sync import ( "internal/race" "runtime" "sync/atomic" "unsafe" ) // A WaitGroup waits for a collection of goroutines to finish. // The main gorout...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/once_test.go
patch/sync/once_test.go
// Copyright 2009 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 sync_test import ( . "sync" "testing" ) type one int func (o *one) Increment() { *o++ } func run(t *testing.T, once *Once, o *one, c chan bool) {...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/once.go
patch/sync/once.go
// Copyright 2009 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 sync import ( "sync/atomic" ) // Once is an object that will perform exactly one action. // // A Once must not be copied after first use. type Once s...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/example_test.go
patch/sync/example_test.go
// Copyright 2012 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 sync_test import ( "fmt" "sync" ) type httpPkg struct{} func (httpPkg) Get(url string) {} var http httpPkg // This example fetches several URLs c...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/pool.go
patch/sync/pool.go
// Copyright 2013 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 sync import ( "internal/race" "runtime" "sync/atomic" "unsafe" ) // A Pool is a set of temporary objects that may be individually saved and // ret...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/cond.go
patch/sync/cond.go
// Copyright 2011 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 sync import ( "runtime" "sync/atomic" "unsafe" ) // Cond implements a condition variable, a rendezvous point // for goroutines waiting for or annou...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/runtime2.go
patch/sync/runtime2.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. // +build !goexperiment.staticlockranking package sync import "unsafe" // Approximation of notifyList in runtime/sema.go. Size and alignment must // agree. t...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/runtime.go
patch/sync/runtime.go
// Copyright 2012 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 sync import "unsafe" // defined in package runtime // Semacquire waits until *s > 0 and then atomically decrements it. // It is intended as a simple ...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/export_test.go
patch/sync/export_test.go
// Copyright 2012 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 sync // Export for testing. var Runtime_Semacquire = runtime_Semacquire var Runtime_Semrelease = runtime_Semrelease var Runtime_procPin = runtime_procP...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/go_fuzz_record.go
patch/sync/go_fuzz_record.go
package sync type TradRecord struct { ID string PreLoc uint16 }
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/atomic/value_test.go
patch/sync/atomic/value_test.go
// Copyright 2014 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 atomic_test import ( "math/rand" "runtime" . "sync/atomic" "testing" ) func TestValue(t *testing.T) { var v Value if v.Load() != nil { t.Fatal...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/atomic/example_test.go
patch/sync/atomic/example_test.go
// Copyright 2018 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 atomic_test import ( "sync" "sync/atomic" "time" ) func loadConfig() map[string]string { return make(map[string]string) } func requests() chan in...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/atomic/value.go
patch/sync/atomic/value.go
// Copyright 2014 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 atomic import ( "unsafe" ) // A Value provides an atomic load and store of a consistently typed value. // The zero value for a Value returns nil from...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/atomic/atomic_test.go
patch/sync/atomic/atomic_test.go
// Copyright 2011 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 atomic_test import ( "fmt" "runtime" "strings" . "sync/atomic" "testing" "unsafe" ) // Tests of correct behavior, without contention. // (Does t...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
true
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/patch/sync/atomic/doc.go
patch/sync/atomic/doc.go
// Copyright 2011 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 atomic provides low-level atomic memory primitives // useful for implementing synchronization algorithms. // // These functions require great care to...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/_examples/inst/oracle/after.go
_examples/inst/oracle/after.go
package oracle import oraclert "gfuzz/pkg/oraclert" func TestHello() { oracleEntry := oraclert.BeforeRun() defer oraclert.AfterRun(oracleEntry) println("hello") }
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/_examples/inst/oracle/before.go
_examples/inst/oracle/before.go
package oracle func TestHello() { println("hello") }
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/_examples/inst/wgrec/after.go
_examples/inst/wgrec/after.go
package wgrec import ( oraclert "gfuzz/pkg/oraclert" "sync" ) type RandomStruct struct { wg sync.WaitGroup } func Hello() { wg := sync.WaitGroup{} r := RandomStruct{} oraclert.StoreOpInfo("Add", 1) wg.Add(1) oraclert.StoreOpInfo("Wait", 2) wg.Wait() oraclert.StoreOpInfo("Done", 3) wg.Done() oraclert.Stor...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/_examples/inst/wgrec/before.go
_examples/inst/wgrec/before.go
package wgrec import "sync" type RandomStruct struct { wg sync.WaitGroup } func Hello() { wg := sync.WaitGroup{} r := RandomStruct{} wg.Add(1) wg.Wait() wg.Done() r.wg.Wait() }
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/_examples/inst/cvrec/after.go
_examples/inst/cvrec/after.go
package cvrec import ( oraclert "gfuzz/pkg/oraclert" "sync" ) func Hello() { m := sync.Mutex{} c := sync.NewCond(&m) oraclert.StoreOpInfo("Broadcast", 1) c.Broadcast() oraclert.StoreOpInfo("Signal", 2) c.Signal() oraclert.StoreOpInfo("Wait", 3) c.Wait() }
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/_examples/inst/cvrec/before.go
_examples/inst/cvrec/before.go
package cvrec import "sync" func Hello() { m := sync.Mutex{} c := sync.NewCond(&m) c.Broadcast() c.Signal() c.Wait() }
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/_examples/inst/default/after.go
_examples/inst/default/after.go
package defaultp import ( oraclert "gfuzz/pkg/oraclert" aaa "sync" _ "github.com/go-kit/log" ) type aa struct { m aaa.Mutex } func (_ *aa) abcde() { println(3) } func (a *aa) abcd() { oraclert.CurrentGoAddValue(a, nil, 0) b := 2 println(a, b) } func Hello() { m := aaa.Mutex{} c := aaa.NewCond(&m) oracl...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/_examples/inst/default/before.go
_examples/inst/default/before.go
package defaultp import ( aaa "sync" _ "github.com/go-kit/log" ) type aa struct { m aaa.Mutex } func (_ *aa) abcde() { println(3) } func (a *aa) abcd() { b := 2 println(a, b) } func Hello() { m := aaa.Mutex{} c := aaa.NewCond(&m) c.Broadcast() c.Signal() //asdfasdf c.Wait() //asdfadfas w := aaa....
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/_examples/inst/chlc/after.go
_examples/inst/chlc/after.go
package defaultp import ( "fmt" oraclert "gfuzz/pkg/oraclert" ) func getChannel() chan string { return make(chan string) } func useOfCh(c interface{}) { } func Hello() { ch1 := make(chan int) ch2 := make(chan struct{}) ch3 := getChannel() ch4 := ch1 for { ch5 := make(chan int) go func() { oraclert.C...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/_examples/inst/chlc/before.go
_examples/inst/chlc/before.go
package defaultp import "fmt" func getChannel() chan string { return make(chan string) } func useOfCh(c interface{}) { } func Hello() { ch1 := make(chan int) ch2 := make(chan struct{}) ch3 := getChannel() ch4 := ch1 for { ch5 := make(chan int) go func() { fmt.Printf("many many code here") fmt.Prin...
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false
system-pclub/GFuzz
https://github.com/system-pclub/GFuzz/blob/8c2d8855d6f35f5135582909420e994901180d79/_examples/inst/mtxrec/after.go
_examples/inst/mtxrec/after.go
package mtxrec import ( oraclert "gfuzz/pkg/oraclert" "sync" ) func Hello() { m := sync.Mutex{} oraclert.StoreOpInfo("Lock", 1) m.Lock() oraclert.StoreOpInfo("Unlock", 2) m.Unlock() rwm := sync.RWMutex{} oraclert.StoreOpInfo("Lock", 3) rwm.Lock() oraclert.StoreOpInfo("RLock", 4) rwm.RLock() oraclert....
go
MIT
8c2d8855d6f35f5135582909420e994901180d79
2026-01-07T09:45:45.369593Z
false