Skip to content

Commit bf7ea0d

Browse files
committed
Auto merge of rust-lang#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`
2 parents 0442fba + e491b08 commit bf7ea0d

File tree

4 files changed

+40
-14
lines changed

4 files changed

+40
-14
lines changed

Cargo.lock

+26-6
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,12 @@ version = "0.1.1"
203203
source = "registry+https://github.com/rust-lang/crates.io-index"
204204
checksum = "349a06037c7bf932dd7e7d1f653678b2038b9ad46a74102f1fc7bd7872678cce"
205205

206+
[[package]]
207+
name = "base64"
208+
version = "0.13.1"
209+
source = "registry+https://github.com/rust-lang/crates.io-index"
210+
checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8"
211+
206212
[[package]]
207213
name = "base64ct"
208214
version = "1.5.3"
@@ -328,6 +334,7 @@ name = "cargo"
328334
version = "0.69.0"
329335
dependencies = [
330336
"anyhow",
337+
"base64",
331338
"bytesize",
332339
"cargo-platform 0.1.2",
333340
"cargo-test-macro",
@@ -345,6 +352,7 @@ dependencies = [
345352
"git2-curl",
346353
"glob",
347354
"hex 0.4.2",
355+
"hmac",
348356
"home",
349357
"http-auth",
350358
"humantime 2.0.1",
@@ -375,6 +383,7 @@ dependencies = [
375383
"serde-value",
376384
"serde_ignored",
377385
"serde_json",
386+
"sha1",
378387
"shell-escape",
379388
"snapbox",
380389
"strip-ansi-escapes",
@@ -1778,9 +1787,9 @@ dependencies = [
17781787

17791788
[[package]]
17801789
name = "git2"
1781-
version = "0.15.0"
1790+
version = "0.16.0"
17821791
source = "registry+https://github.com/rust-lang/crates.io-index"
1783-
checksum = "2994bee4a3a6a51eb90c218523be382fd7ea09b16380b9312e9dbe955ff7c7d1"
1792+
checksum = "be36bc9e0546df253c0cc41fd0af34f5e92845ad8509462ec76672fac6997f5b"
17841793
dependencies = [
17851794
"bitflags",
17861795
"libc",
@@ -1793,9 +1802,9 @@ dependencies = [
17931802

17941803
[[package]]
17951804
name = "git2-curl"
1796-
version = "0.16.0"
1805+
version = "0.17.0"
17971806
source = "registry+https://github.com/rust-lang/crates.io-index"
1798-
checksum = "ed817a00721e2f8037ba722e60358d4956dae9cca10315fc982f967907d3b0cd"
1807+
checksum = "7577f4e6341ba7c90d883511130a45b956c274ba5f4d205d9f9da990f654cd33"
17991808
dependencies = [
18001809
"curl",
18011810
"git2",
@@ -2335,9 +2344,9 @@ dependencies = [
23352344

23362345
[[package]]
23372346
name = "libgit2-sys"
2338-
version = "0.14.0+1.5.0"
2347+
version = "0.14.1+1.5.0"
23392348
source = "registry+https://github.com/rust-lang/crates.io-index"
2340-
checksum = "47a00859c70c8a4f7218e6d1cc32875c4b55f6799445b842b0d8ed5e4c3d959b"
2349+
checksum = "4a07fb2692bc3593bda59de45a502bb3071659f2c515e28c71e728306b038e17"
23412350
dependencies = [
23422351
"cc",
23432352
"libc",
@@ -5094,6 +5103,17 @@ dependencies = [
50945103
"digest",
50955104
]
50965105

5106+
[[package]]
5107+
name = "sha1"
5108+
version = "0.10.5"
5109+
source = "registry+https://github.com/rust-lang/crates.io-index"
5110+
checksum = "f04293dc80c3993519f2d7f6f511707ee7094fe0c6d3406feb330cdb3540eba3"
5111+
dependencies = [
5112+
"cfg-if",
5113+
"cpufeatures",
5114+
"digest",
5115+
]
5116+
50975117
[[package]]
50985118
name = "sha2"
50995119
version = "0.10.6"

RELEASES.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Version 1.66.1 (2023-01-10)
2+
===========================
3+
4+
- Added validation of SSH host keys for git URLs in Cargo ([CVE-2022-46176](https://www.cve.org/CVERecord?id=CVE-2022-46176))
5+
16
Version 1.66.0 (2022-12-15)
27
==========================
38

src/ci/scripts/checkout-submodules.sh

+8-7
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ function fetch_github_commit_archive {
3636
rm $cached
3737
}
3838

39-
included="src/llvm-project src/doc/book src/doc/rust-by-example"
39+
#included="src/llvm-project src/doc/book src/doc/rust-by-example"
40+
included=""
4041
modules="$(git config --file .gitmodules --get-regexp '\.path$' | cut -d' ' -f2)"
4142
modules=($modules)
4243
use_git=""
@@ -60,9 +61,9 @@ done
6061
retry sh -c "git submodule deinit -f $use_git && \
6162
git submodule sync && \
6263
git submodule update -j 16 --init --recursive --depth 1 $use_git"
63-
STATUS=0
64-
for pid in ${bg_pids[*]}
65-
do
66-
wait $pid || STATUS=1
67-
done
68-
exit ${STATUS}
64+
#STATUS=0
65+
#for pid in ${bg_pids[*]}
66+
#do
67+
# wait $pid || STATUS=1
68+
#done
69+
#exit ${STATUS}

0 commit comments

Comments
 (0)