]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.17] path/filepath: do not remove prefix "." when following path...
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Fri, 22 Apr 2022 01:07:51 +0000 (10:07 +0900)
committerDmitri Shuralyov <dmitshur@golang.org>
Tue, 31 May 2022 17:30:12 +0000 (17:30 +0000)
commit4c69fd51a9ed70da0a6399d0b084b828bc30d562
treeaa54f6a3c29412a401cb050f588b8fe120ebff46
parent909881db03b7aca794c791e4c6e893c9a4638521
[release-branch.go1.17] path/filepath: do not remove prefix "." when following path contains ":".

For #52476
Fixes #52478
Fixes CVE-2022-29804

Change-Id: I9eb72ac7dbccd6322d060291f31831dc389eb9bb
Reviewed-on: https://go-review.googlesource.com/c/go/+/401595
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-on: https://go-review.googlesource.com/c/go/+/405235
Reviewed-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
src/path/filepath/path.go
src/path/filepath/path_test.go
src/path/filepath/path_windows_test.go