]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.14-security] cmd/go: pass resolved CC, GCCGO to cgo
authorRuss Cox <rsc@golang.org>
Mon, 11 Jan 2021 14:41:54 +0000 (09:41 -0500)
committerRoland Shoemaker <bracewell@google.com>
Sat, 16 Jan 2021 00:41:07 +0000 (00:41 +0000)
commite749a96e717718e3ac881a75f805776370302a86
treed0c9f0701df1121cc25c15a48655a04ffbaa9113
parent7490c2547ec57448be2c74bb91d441083edc583d
[release-branch.go1.14-security] cmd/go: pass resolved CC, GCCGO to cgo

This makes sure the go command and cgo agree about
exactly which compiler is being used.

This issue was reported by RyotaK.

Fixes CVE-2021-3115.

Change-Id: If171c5c8b2523efb5ea2d957e5ad1380a038149c
Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/949416
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Jay Conrod <jayconrod@google.com>
(cherry picked from commit 4cf399ca38587a6e4a3e85b494cd9a9b4cc53378)
Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/955294
Reviewed-by: Katie Hockman <katiehockman@google.com>
src/cmd/go/internal/work/action.go
src/cmd/go/internal/work/exec.go