1
0
mirror of https://github.com/golang/go synced 2024-09-23 09:23:20 -06:00
The Go programming language
Go to file
Russ Cox 590b53fac9 [release-branch.go1.17] os/exec: return clear error for missing cmd.Path
Following up on CL 403694, there is a bit of confusion about
when Path is and isn't set, along with now the exported Err field.
Catch the case where Path and Err (and lookPathErr) are all unset
and give a helpful error.

Updates #52574
Followup after #43724.

Fixes #53056
Fixes CVE-2022-30580

Change-Id: I03205172aef3801c3194f5098bdb93290c02b1b6
Reviewed-on: https://go-review.googlesource.com/c/go/+/403759
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
(cherry picked from commit 960ffa98ce)
Reviewed-on: https://go-review.googlesource.com/c/go/+/408578
Run-TryBot: Roland Shoemaker <roland@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-05-27 14:57:14 +00:00
.github
api reflect: add Value.CanConvert 2021-07-21 19:25:48 +00:00
doc [release-branch.go1.17] time: fix docs for new comma layouts 2021-08-13 16:26:40 +00:00
lib/time
misc [release-branch.go1.17] misc/cgo/testsanitizers: use buffered channel in tsan12.go 2022-05-25 19:25:04 +00:00
src [release-branch.go1.17] os/exec: return clear error for missing cmd.Path 2022-05-27 14:57:14 +00:00
test [release-branch.go1.17] cmd/compile: correct type of pointer difference on RISCV64 2022-02-18 00:51:21 +00:00
.gitattributes
.gitignore
AUTHORS
codereview.cfg [release-branch.go1.17] update codereview.cfg for release-branch.go1.17 2021-07-13 22:45:26 +00:00
CONTRIBUTING.md
CONTRIBUTORS CONTRIBUTORS: update for the Go 1.17 release 2021-08-12 17:43:16 +00:00
LICENSE
PATENTS
README.md
SECURITY.md
VERSION [release-branch.go1.17] go1.17.10 2022-05-10 16:14:36 +00:00

The Go Programming Language

Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.

Gopher image Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.

Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.

Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.

Download and Install

Binary Distributions

Official binary distributions are available at https://golang.org/dl/.

After downloading a binary release, visit https://golang.org/doc/install for installation instructions.

Install From Source

If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source for source installation instructions.

Contributing

Go is the work of thousands of contributors. We appreciate your help!

To contribute, please read the contribution guidelines at https://golang.org/doc/contribute.html.

Note that the Go project uses the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.