- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for zipinsecurepath (0.05 sec)
-
src/archive/zip/reader.go
"errors" "fmt" "hash" "hash/crc32" "internal/godebug" "io" "io/fs" "os" "path" "path/filepath" "slices" "strings" "sync" "time" ) var zipinsecurepath = godebug.New("zipinsecurepath") var ( ErrFormat = errors.New("zip: not a valid zip file") ErrAlgorithm = errors.New("zip: unsupported compression algorithm") ErrChecksum = errors.New("zip: checksum error")
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Mar 11 22:19:38 UTC 2025 - 28.4K bytes - Viewed (0) -
src/archive/zip/reader_test.go
t.Setenv("GODEBUG", "zipinsecurepath=1") var buf bytes.Buffer zw := NewWriter(&buf) const name = "/foo" _, err := zw.Create(name) if err != nil { t.Fatalf("zw.Create(%q) = %v", name, err) } zw.Close() zr, err := NewReader(bytes.NewReader(buf.Bytes()), int64(buf.Len())) if err != nil { t.Fatalf("NewReader with zipinsecurepath=1: got err %v, want nil", err) }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Mar 11 22:19:38 UTC 2025 - 56.6K bytes - Viewed (0) -
doc/godebug.md
controlled by the [`tarinsecurepath` setting](/pkg/archive/tar/#Reader.Next) and the [`zipinsecurepath` setting](/pkg/archive/zip/#NewReader). These default to `tarinsecurepath=1` and `zipinsecurepath=1`, preserving the behavior of earlier versions of Go. A future version of Go may change the defaults to `tarinsecurepath=0` and `zipinsecurepath=0`. Go 1.20 introduced automatic seeding of the
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Jul 08 18:30:38 UTC 2025 - 22.9K bytes - Viewed (0)