Auto merge of #106687 - pietroalbini:pa-cve-nightly, r=pietroalbini

[nightly] Fix CVE-2022-46176

See https://blog.rust-lang.org/2023/01/10/cve-2022-46176.html

r? `@ghost`
This commit is contained in:
bors
2023-01-10 22:49:23 +00:00
4 changed files with 40 additions and 14 deletions
+26 -6
View File
@@ -203,6 +203,12 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "349a06037c7bf932dd7e7d1f653678b2038b9ad46a74102f1fc7bd7872678cce"
[[package]]
name = "base64"
version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8"
[[package]]
name = "base64ct"
version = "1.5.3"
@@ -328,6 +334,7 @@ name = "cargo"
version = "0.69.0"
dependencies = [
"anyhow",
"base64",
"bytesize",
"cargo-platform 0.1.2",
"cargo-test-macro",
@@ -345,6 +352,7 @@ dependencies = [
"git2-curl",
"glob",
"hex 0.4.2",
"hmac",
"home",
"http-auth",
"humantime 2.0.1",
@@ -375,6 +383,7 @@ dependencies = [
"serde-value",
"serde_ignored",
"serde_json",
"sha1",
"shell-escape",
"snapbox",
"strip-ansi-escapes",
@@ -1778,9 +1787,9 @@ dependencies = [
[[package]]
name = "git2"
version = "0.15.0"
version = "0.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2994bee4a3a6a51eb90c218523be382fd7ea09b16380b9312e9dbe955ff7c7d1"
checksum = "be36bc9e0546df253c0cc41fd0af34f5e92845ad8509462ec76672fac6997f5b"
dependencies = [
"bitflags",
"libc",
@@ -1793,9 +1802,9 @@ dependencies = [
[[package]]
name = "git2-curl"
version = "0.16.0"
version = "0.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed817a00721e2f8037ba722e60358d4956dae9cca10315fc982f967907d3b0cd"
checksum = "7577f4e6341ba7c90d883511130a45b956c274ba5f4d205d9f9da990f654cd33"
dependencies = [
"curl",
"git2",
@@ -2335,9 +2344,9 @@ dependencies = [
[[package]]
name = "libgit2-sys"
version = "0.14.0+1.5.0"
version = "0.14.1+1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "47a00859c70c8a4f7218e6d1cc32875c4b55f6799445b842b0d8ed5e4c3d959b"
checksum = "4a07fb2692bc3593bda59de45a502bb3071659f2c515e28c71e728306b038e17"
dependencies = [
"cc",
"libc",
@@ -5094,6 +5103,17 @@ dependencies = [
"digest",
]
[[package]]
name = "sha1"
version = "0.10.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f04293dc80c3993519f2d7f6f511707ee7094fe0c6d3406feb330cdb3540eba3"
dependencies = [
"cfg-if",
"cpufeatures",
"digest",
]
[[package]]
name = "sha2"
version = "0.10.6"
+5
View File
@@ -1,3 +1,8 @@
Version 1.66.1 (2023-01-10)
===========================
- Added validation of SSH host keys for git URLs in Cargo ([CVE-2022-46176](https://www.cve.org/CVERecord?id=CVE-2022-46176))
Version 1.66.0 (2022-12-15)
==========================
+8 -7
View File
@@ -36,7 +36,8 @@ function fetch_github_commit_archive {
rm $cached
}
included="src/llvm-project src/doc/book src/doc/rust-by-example"
#included="src/llvm-project src/doc/book src/doc/rust-by-example"
included=""
modules="$(git config --file .gitmodules --get-regexp '\.path$' | cut -d' ' -f2)"
modules=($modules)
use_git=""
@@ -60,9 +61,9 @@ done
retry sh -c "git submodule deinit -f $use_git && \
git submodule sync && \
git submodule update -j 16 --init --recursive --depth 1 $use_git"
STATUS=0
for pid in ${bg_pids[*]}
do
wait $pid || STATUS=1
done
exit ${STATUS}
#STATUS=0
#for pid in ${bg_pids[*]}
#do
# wait $pid || STATUS=1
#done
#exit ${STATUS}