summary refs log tree commit diff
path: root/tests/ui/std
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-09-04 15:07:06 +0000
committerbors <bors@rust-lang.org>2024-09-04 15:07:06 +0000
commiteeb90cda1969383f56a2637cbd3037bdf598841c (patch)
tree54fd52367088ebbf0c73f13e278d8047fb723aba /tests/ui/std
parentf54dd915b0a4345ee06fd561416ad1af08b54dbb (diff)
parentb666f820546ad2fd15b591acc8dfd7e7f461147e (diff)
downloadrust-1.81.0.tar.gz
rust-1.81.0.zip
Auto merge of #129960 - pietroalbini:pa-cve-2024-43402, r=pietroalbini 1.81.0
[stable] Fix CVE-2024-43402

Backport the fix for CVE-2024-43402 in the upcoming 1.81.0. See https://github.com/rust-lang/rust/security/advisories/GHSA-2xg3-7mm6-98jj for more information about it.

This also includes https://github.com/rust-lang/rust/pull/129944 as a last-minute fix to the relnotes.

cc `@boxyuwu` as you are driving this release
r? `@ghost`
Diffstat (limited to 'tests/ui/std')
-rw-r--r--tests/ui/std/windows-bat-args.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/ui/std/windows-bat-args.rs b/tests/ui/std/windows-bat-args.rs
index a9b6252b78c..cc4a43692ab 100644
--- a/tests/ui/std/windows-bat-args.rs
+++ b/tests/ui/std/windows-bat-args.rs
@@ -32,7 +32,9 @@ fn parent() {
     let bat2 = String::from(bat.to_str().unwrap());
     bat.set_file_name("windows-bat-args3.bat");
     let bat3 = String::from(bat.to_str().unwrap());
-    let bat = [bat1.as_str(), bat2.as_str(), bat3.as_str()];
+    bat.set_file_name("windows-bat-args1.bat .. ");
+    let bat4 = String::from(bat.to_str().unwrap());
+    let bat = [bat1.as_str(), bat2.as_str(), bat3.as_str(), bat4.as_str()];
 
     check_args(&bat, &["a", "b"]).unwrap();
     check_args(&bat, &["c is for cat", "d is for dog"]).unwrap();