Michael Matloob submitted the change![Open in Gerrit]()
Change information
Commit message:
cmd/go: check pattern for utf8 validity before call regexp.MustCompile
Do not panic if the package path or the package version contains
invalid UTF-8 characters.
Fixes #75251
Change-Id: Ib787e74277cf814253857b911d378ea5e53d8824
Files:
- M src/cmd/go/internal/modget/query.go
- A src/cmd/go/testdata/script/get_panic_issue75251.txt
- M src/cmd/internal/pkgpattern/pkgpattern.go
Change size: S
Delta: 3 files changed, 24 insertions(+), 1 deletion(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +1 by Michael Matloob, +1 by Ian Alexander, +2 by Michael Matloob
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: Ib787e74277cf814253857b911d378ea5e53d8824
Gerrit-Change-Number: 700815
Gerrit-PatchSet: 10