- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for TestDisableInsecurePathCheck (0.09 seconds)
-
src/archive/tar/reader_test.go
} if h.Name != securePath { t.Errorf("tr.Next for file %q: got name %q, want %q", securePath, h.Name, securePath) } } } func TestDisableInsecurePathCheck(t *testing.T) { t.Setenv("GODEBUG", "tarinsecurepath=1") var buf bytes.Buffer tw := NewWriter(&buf) const name = "/foo" tw.WriteHeader(&Header{ Name: name, }) tw.Close()Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Dec 15 16:34:13 GMT 2025 - 47.5K bytes - Click Count (0) -
src/archive/zip/reader_test.go
} if !slices.Equal(gotPaths, []string{path}) { t.Errorf("NewReader for archive with file %q: got files %q", path, gotPaths) continue } } } func TestDisableInsecurePathCheck(t *testing.T) { t.Setenv("GODEBUG", "zipinsecurepath=1") var buf bytes.Buffer zw := NewWriter(&buf) const name = "/foo" _, err := zw.Create(name) if err != nil {
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Fri Oct 17 20:10:27 GMT 2025 - 56.5K bytes - Click Count (0)