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
[Under strict provenance, it is sound to] forge an allocation of size zero at any sufficiently aligned non-null address. i.e. the usual “ZSTs are fake, do what you want” rules apply but this only applies for actual forgery (integers cast to pointers). If you borrow some struct’s field that happens to be zero-sized, the resulting pointer will have provenance tied to that allocation, and it will still get invalidated if the allocation gets deallocated. In the future we may introduce an API to make such a forged allocation explicit.
Along the same lines as #529, IIUC this violates provenance monotonicity.
The text was updated successfully, but these errors were encountered:
joshlf
changed the title
Do the current std::ptr docs violate provenance monotonicity?
Do the current nightly std::ptr docs violate provenance monotonicity?
Sep 7, 2024
Per the nightly
std::ptr
docs:Along the same lines as #529, IIUC this violates provenance monotonicity.
The text was updated successfully, but these errors were encountered: