about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2024-07-16 20:19:16 -0700
committerJubilee Young <workingjubilee@gmail.com>2024-07-18 15:18:38 -0700
commit357ba1f8ec0326b9f285224fee8a97691485475f (patch)
tree78f5c95c71ac6cdf57d3f5b3ca27d004dbf3ec10 /tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
parent9e354daf7b3ef64740fe2ecf3c5aae9563b68189 (diff)
downloadrust-357ba1f8ec0326b9f285224fee8a97691485475f.tar.gz
rust-357ba1f8ec0326b9f285224fee8a97691485475f.zip
unix: lift init of sigaltstack before sigaction
This is technically "not necessary", as we will "just" segfault instead
if we e.g. arrive inside the handler fn with the null altstack. However,
it seems incorrect to go about this hoping that segfaulting is okay,
seeing as how our purpose here is to mitigate stack overflow problems.

Make sure NEED_ALTSTACK syncs with PAGE_SIZE when we do.

Co-authored-by: Jonas Böttiger <jonasboettiger@icloud.com>
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs')
0 files changed, 0 insertions, 0 deletions