Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getenv (0.21 sec)

  1. src/archive/zip/reader_test.go

    			continue
    		}
    		if got := fi.ModTime(); !got.Equal(test.want) {
    			t.Errorf("%s: got modtime %v, want %v", test.name, got, test.want)
    		}
    	}
    }
    
    func TestCVE202127919(t *testing.T) {
    	t.Setenv("GODEBUG", "zipinsecurepath=0")
    	// Archive containing only the file "../test.txt"
    	data := []byte{
    		0x50, 0x4b, 0x03, 0x04, 0x14, 0x00, 0x08, 0x00,
    		0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  2. src/cmd/cgo/gcc.go

    // an error if it does not.
    func checkGCCBaseCmd() ([]string, error) {
    	// Use $CC if set, since that's what the build uses.
    	value := os.Getenv("CC")
    	if value == "" {
    		// Try $GCC if set, since that's what we used to use.
    		value = os.Getenv("GCC")
    	}
    	if value == "" {
    		value = defaultCC(goos, goarch)
    	}
    	args, err := quoted.Split(value)
    	if err != nil {
    		return nil, err
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
Back to top