Closed
Description
This program (reduced from an ICE encountered when running the tests for https://crates.io/crates/tinyset):
fn main() {
let bytes = isize::MAX as usize + 1;
unsafe {
let layout = std::alloc::Layout::from_size_align_unchecked(bytes, 1); // Undetected library(?) UB here
let _ = std::alloc::alloc_zeroed(layout);
}
}
Hits this ICE:
thread 'rustc' panicked at src/tools/miri/src/alloc_bytes.rs:71:59:
called `Result::unwrap()` on an `Err` value: LayoutError
Caused by this unwrap:
Line 71 in 60a7200