You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can trigger UB if the location pointed by *mut T does not contain a valid value of type T since it is converting it to a &T.
Converting *const T into &mut T and *mut T to &mut T is also unsafe, and may break aliasing rules.
The text was updated successfully, but these errors were encountered:
Note that #3363 removes the decouple_lifetime function, but untracked_deref function is still unsafe and my cause UB for arguments that are dropped inside the function.
Looking at the
kani::internal::Pointer
implementation for*mut T
:kani/library/kani/src/internal.rs
Lines 59 to 63 in 1491dd6
This can trigger UB if the location pointed by
*mut T
does not contain a valid value of typeT
since it is converting it to a&T
.Converting
*const T
into&mut T
and*mut T
to&mut T
is also unsafe, and may break aliasing rules.The text was updated successfully, but these errors were encountered: