mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
a01382dbea
Add `-Zstack-protector` test for Windows targets
Add variants of the `stack-protector-heuristics-effect.rs` test for 32-bit and 64-bit MSVC Windows and update the original test to run on GNU Windows targets.
I added two tests instead of trying to modify the original because:
- MSVC uses a different function name (`__security_check_cookie` to perform the test rather than doing the test inline and calling `__stack_chk_fail`).
- LLVM's stack protection pass doesn't currently support generating checks for [frames with funclet based EH personality](
|
||
---|---|---|
.. | ||
stack-protector-heuristics-effect-windows-32bit.rs | ||
stack-protector-heuristics-effect-windows-64bit.rs | ||
stack-protector-heuristics-effect.rs | ||
stack-protector-target-support.rs |