- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestDisableInsecurePathCheck (0.17 sec)
-
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()
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Oct 03 15:48:09 UTC 2024 - 46.9K bytes - Viewed (0)