[release-branch.go1.25] cmd/pack: refuse to extract files with directory components
Do not write to /etc/passwd when running "go tool pack x evil.a"
on an archive containing a file named /etc/passwd.
For #78778
Fixes #78790
Change-Id: I4cf69b81af62321ffbb41ace679672a86a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/767520
Reviewed-by: Nicholas Husin <n...@golang.org>
LUCI-TryBot-Result: golang...@luci-project-accounts.iam.gserviceaccount.com <golang...@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Nicholas Husin <hu...@google.com>
(cherry picked from commit 7409ada33f99c0d74db2b0389c51a15de116e48d)
Reviewed-on: https://go-review.googlesource.com/c/go/+/767660
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[release-branch.go1.26] cmd/pack: refuse to extract files with directory components
Do not write to /etc/passwd when running "go tool pack x evil.a"
on an archive containing a file named /etc/passwd.
For #78778
Fixes #78791
Change-Id: I4cf69b81af62321ffbb41ace679672a86a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/767520
Reviewed-by: Nicholas Husin <n...@golang.org>
LUCI-TryBot-Result: golang...@luci-project-accounts.iam.gserviceaccount.com <golang...@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Nicholas Husin <hu...@google.com>
(cherry picked from commit 7409ada33f99c0d74db2b0389c51a15de116e48d)
Reviewed-on: https://go-review.googlesource.com/c/go/+/767661
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |