zig/test/standalone/windows_bat_args
Ryan Liptak 63014d3819 Add test to ensure the BatBadBut mitigation handles trailing . and space safely
Context:
- https://blog.rust-lang.org/2024/09/04/cve-2024-43402.html
- https://github.com/rust-lang/rust/pull/129962

Note that the Rust test case for this checks that it executes the batch file successfully with the proper mitigation in place, while the Zig test case expects a FileNotFound error. This is because of a PATHEXT optimization that Zig does, and that Rust doesn't do because Rust doesn't do PATHEXT appending (it only appends .exe specifically). See the added comment for more details.
2025-03-26 10:55:18 +01:00
..
build.zig test-standalone: migrate from deprecated std.Build APIs 2024-12-18 01:49:13 +05:00
echo-args.zig std.process.Child: Mitigate arbitrary command execution vulnerability on Windows (BatBadBut) 2024-04-23 03:21:51 -07:00
fuzz.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
test.zig Add test to ensure the BatBadBut mitigation handles trailing . and space safely 2025-03-26 10:55:18 +01:00