zig/test
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
..
behavior Merge pull request #23310 from Rexicon226/fix-23309 2025-03-25 18:44:35 +01:00
c_abi Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
c_import translate-c: fix division and modulo of >8-bit stdint.h types in macros 2025-02-20 13:33:59 +02:00
cases x86_64: rewrite wrapping multiplication 2025-03-21 21:51:08 -04:00
incremental incremental: invalidate namespace dependencies when a name changes visibility 2025-03-03 22:18:02 +00:00
link test: Disable test-elf-ld-script-path-error for now. 2025-03-08 07:04:27 +01:00
src Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
standalone Add test to ensure the BatBadBut mitigation handles trailing . and space safely 2025-03-26 10:55:18 +01:00
assemble_and_link.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
behavior.zig spirv: don't hardcode test error type alignment 2025-03-17 20:19:08 +03:30
c_import.zig c_import: extract behavior tests that use @cImport 2024-02-20 18:44:43 +01:00
cases.zig remove test/cbe.zig 2024-03-28 15:24:01 +02:00
compare_output.zig std.heap: delete LoggingAllocator and friends 2025-02-06 14:23:23 -08:00
compile_errors.zig @deprecated: remove per-module flag in Build 2025-02-26 14:41:33 -05:00
gen_h.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
llvm_targets.zig std.Target: Remove Os.Tag.bridgeos. 2024-12-03 20:43:15 +01:00
nvptx.zig Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
run_translated_c.zig remove hard tabs from source code 2024-07-31 16:57:42 -07:00
stack_traces.zig tests: enable stack trace tests for x86_64-selfhosted 2025-01-23 23:22:13 +00:00
tests.zig spirv: require int8/int16 capabilities 2025-03-18 07:05:50 +03:30
translate_c.zig test: update for CallingConvention changes 2024-10-19 19:15:23 +01:00