Closed
Description
kani/library/kani_core/src/mem.rs
Lines 130 to 135 in 707309b
Does checked_size_of_raw
return None
for sizes larger than isize::MAX
? All Rust allocations are no more than isize::MAX
bytes long, and many unsafe stdlib APIs require pointer referents to be no more than isize::MAX
as a safety precondition. It'd be good to document the behavior one way or the other.
Same for its callers - is_inbounds
and the callers of is_inbounds
.