about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-03-11 20:29:45 +0100
committerGitHub <noreply@github.com>2022-03-11 20:29:45 +0100
commit9e70b1a033ec27d618b8e9ffa9412837b7545276 (patch)
tree7a0c67489ce634e50e75f272b9c3c9c4d6fc5b3a /library/std/src/sys/unix/stack_overflow.rs
parentfedf70acb1e8a51c36a970bf20aa4e6febf815f9 (diff)
parent63ed8e41ce1f126827055b3b6b35db734d3cca28 (diff)
downloadrust-9e70b1a033ec27d618b8e9ffa9412837b7545276.tar.gz
rust-9e70b1a033ec27d618b8e9ffa9412837b7545276.zip
Rollup merge of #94827 - RalfJung:offset-from-ub, r=oli-obk
CTFE/Miri: detect out-of-bounds pointers in offset_from

Also I became uneasy with aggressively doing `try_to_int` here -- this will always succeed on Miri, leading to the wrong codepath being taken. We should rather try to convert them both to pointers, and use the integer path as a fallback, so that's what I implemented now.

Hiding whitespaces helps with the diff.

Fixes https://github.com/rust-lang/miri/issues/1950

r? ``@oli-obk``
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions