-
Notifications
You must be signed in to change notification settings - Fork 391
Closed
Labels
A-interpreterArea: affects the core interpreterArea: affects the core interpreterC-bugCategory: This is a bug.Category: This is a bug.I-misses-UBImpact: makes Miri miss UB, i.e., a false negative (with default settings)Impact: makes Miri miss UB, i.e., a false negative (with default settings)S-blockedStatus: blocked on something happening somewhere elseStatus: blocked on something happening somewhere else
Description
The following example should both be UB, but Miri finds neither of it: (this got fixed by rust-lang/rust#104844)
fn main() {
let ptr = 32 as *const u8;
unsafe { let _ = *ptr; }
}
This is blocked on rust-lang/rust#99180.
Here's another variant: (that is not fixed yet, will be fixed by rust-lang/rust#103208)
fn main() {
let ptr = 32 as *const u8;
unsafe {
match *ptr { _ => {} }
}
}
Metadata
Metadata
Assignees
Labels
A-interpreterArea: affects the core interpreterArea: affects the core interpreterC-bugCategory: This is a bug.Category: This is a bug.I-misses-UBImpact: makes Miri miss UB, i.e., a false negative (with default settings)Impact: makes Miri miss UB, i.e., a false negative (with default settings)S-blockedStatus: blocked on something happening somewhere elseStatus: blocked on something happening somewhere else