Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestDisableInsecurePathCheck (0.08 sec)

  1. 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 {
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Fri Oct 17 20:10:27 UTC 2025
    - 56.5K bytes
    - Viewed (0)
Back to top