about summary refs log tree commit diff
path: root/library/std/src/sys/pal/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-24 08:11:36 +0000
committerbors <bors@rust-lang.org>2024-05-24 08:11:36 +0000
commit7fc41d1bdf4cd9c04f52d3342983c6b1964b0a42 (patch)
tree32160cb1f70c008465c33343f85cf48b781f9fc7 /library/std/src/sys/pal/unix/stack_overflow.rs
parent88d519f718bf4c44302aac2127ab97cd3010573d (diff)
parentb84620ff17b386969052d26b2868aa7e2557be79 (diff)
downloadrust-7fc41d1bdf4cd9c04f52d3342983c6b1964b0a42.tar.gz
rust-7fc41d1bdf4cd9c04f52d3342983c6b1964b0a42.zip
Auto merge of #3625 - Strophox:miri-allocation-fix, r=RalfJung
Bugfix `MiriAllocBytes` to guarantee different addresses

Fix in `alloc_bytes.rs` following https://github.com/rust-lang/miri/pull/3526

Currently when an allocation of `size == 0` is requested we return a `std::ptr::without_provenance_mut(align)`, but this means returned `ptr`s may overlap, which breaks things.
Diffstat (limited to 'library/std/src/sys/pal/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions