Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for zipinsecurepath (0.1 sec)

  1. 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 Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 55.6K bytes
    - Viewed (0)
Back to top