- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestInsecurePaths (0.16 sec)
-
src/archive/zip/reader_test.go
n, got := io.Copy(io.Discard, rd) if n != 0 || got != ErrFormat { t.Fatalf("Error mismatch, got: %d, %v, want: %v", n, got, ErrFormat) } }) } } } func TestInsecurePaths(t *testing.T) { t.Setenv("GODEBUG", "zipinsecurepath=0") for _, path := range []string{ "../foo", "/foo", "a/b/../../../c", `a\b`, } { var buf bytes.Buffer
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jul 25 00:25:45 UTC 2024 - 55.6K bytes - Viewed (0)