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
Functions GuestMemory and the like return pointers but do not make any guarantees about their validity, making the returned pointers useless. In practice, callers unsoundly make assumptions about the validity of pointers.
There are three alternatives I can think of:
Make GuestMemory and friends unsafe to implement.
Deprecate the functions returning raw pointers, and replace them with functions returning VolatileSlice, whose member functions do provide guarantees about the pointers they return.