generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 129
Closed
Labels
[C] BugThis is a bug. Something isn't working.This is a bug. Something isn't working.[E] Unsupported UBUndefined behavior that Kani does not detectUndefined behavior that Kani does not detect[F] SoundnessKani failed to detect an issueKani failed to detect an issue
Description
#[kani::proof]
fn check_offset_from() {
let val = 10u128;
let ptr: *const u128 = &val;
let ptr_oob: *const u128 = ptr.wrapping_add(10);
// SAFETY: This is not safe!
let _offset = unsafe { ptr_oob.offset_from(ptr) };
}using the following command line invocation:
kani check_ub.rs
with Kani version: 0.56.0
I expected to see this happen: Verification fails due to UB detection
Instead, this happened: Verification succeeds
Metadata
Metadata
Assignees
Labels
[C] BugThis is a bug. Something isn't working.This is a bug. Something isn't working.[E] Unsupported UBUndefined behavior that Kani does not detectUndefined behavior that Kani does not detect[F] SoundnessKani failed to detect an issueKani failed to detect an issue