- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for GODEBUG (0.18 sec)
-
doc/godebug.md
[permitted by the Go 1 compatibility rules](/doc/go1compat). Even so, Go provides a mechanism called GODEBUG to reduce the impact such changes have on Go developers using newer toolchains to compile old code. A GODEBUG setting is a `key=value` pair that controls the execution of certain parts of a Go program. The environment variable `GODEBUG` can hold a comma-separated list of these settings.
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Tue Apr 16 17:29:58 GMT 2024 - 13.5K bytes - Viewed (0) -
doc/next/6-stdlib/1-time.md
These new behaviors are only enabled when the main Go program is in a module with a `go.mod` `go` line using Go 1.23.0 or later. When Go 1.23 builds older programs, the old behaviors remain in effect. The new [GODEBUG setting](/doc/godebug) [`asynctimerchan=1`](/pkg/time/#NewTimer) can be used to revert back to asynchronous channel behaviors
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Fri Apr 12 20:57:18 GMT 2024 - 1.5K bytes - Viewed (0) -
src/archive/zip/reader.go
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Oct 13 18:36:46 GMT 2023 - 27.7K bytes - Viewed (0) -
src/archive/zip/reader_test.go
} if got := fi.ModTime(); !got.Equal(test.want) { t.Errorf("%s: got modtime %v, want %v", test.name, got, test.want) } } } func TestCVE202127919(t *testing.T) { t.Setenv("GODEBUG", "zipinsecurepath=0") // Archive containing only the file "../test.txt" data := []byte{ 0x50, 0x4b, 0x03, 0x04, 0x14, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Mar 27 18:23:49 GMT 2024 - 55.3K bytes - Viewed (0) -
src/cmd/cgo/doc.go
memory points, and so on) is pinned. These rules are checked dynamically at runtime. The checking is controlled by the cgocheck setting of the GODEBUG environment variable. The default setting is GODEBUG=cgocheck=1, which implements reasonably cheap dynamic checks. These checks may be disabled entirely using GODEBUG=cgocheck=0. Complete checking of pointer handling, at some cost in run time, is available by setting GOEXPERIMENT=cgocheck2 at build time.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Sun Mar 31 09:02:45 GMT 2024 - 42.1K bytes - Viewed (0) -
src/archive/tar/common.go
package tar import ( "errors" "fmt" "internal/godebug" "io/fs" "math" "path" "reflect" "strconv" "strings" "time" ) // BUG: Use of the Uid and Gid fields in Header could overflow on 32-bit // architectures. If a large value is encountered when decoding, the result // stored in Header will be the truncated version. var tarinsecurepath = godebug.New("tarinsecurepath") var (
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Mar 15 16:01:50 GMT 2024 - 24.7K bytes - Viewed (2) -
src/builtin/builtin.go
// built-in function recover. // // Starting in Go 1.21, calling panic with a nil interface value or an // untyped nil causes a run-time error (a different panic). // The GODEBUG setting panicnil=1 disables the run-time error. func panic(v any) // The recover built-in function allows a program to manage behavior of a // panicking goroutine. Executing a call to recover inside a deferred
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Apr 11 20:22:45 GMT 2024 - 12.7K bytes - Viewed (0) -
src/archive/tar/reader_test.go
} default: t.Fatalf("test %d.%d, unknown test operation: %T", i, j, tf) } } } } func TestInsecurePaths(t *testing.T) { t.Setenv("GODEBUG", "tarinsecurepath=0") for _, path := range []string{ "../foo", "/foo", "a/b/../../../c", } { var buf bytes.Buffer tw := NewWriter(&buf) tw.WriteHeader(&Header{ Name: path,
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Nov 21 21:14:38 GMT 2022 - 47.1K bytes - Viewed (0) -
src/archive/tar/reader.go
// Any remaining data in the current file is automatically discarded. // At the end of the archive, Next returns the error io.EOF. // // If Next encounters a non-local name (as defined by [filepath.IsLocal]) // and the GODEBUG environment variable contains `tarinsecurepath=0`, // Next returns the header with an [ErrInsecurePath] error. // A future version of Go may introduce this behavior by default.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Mar 08 01:59:14 GMT 2024 - 26.8K bytes - Viewed (0)