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
As pointed out in japaric/vcell#10, crates like this that use references to mmio are unsound.
I propose a new design that only stores raw pointers to prevent this behavior.
We could then initialize the cell using addr_of_mut to avoid any creation of references before that data is initialized.
Thanks for reporting! We are currently working on a new interface based on raw pointers in #29. It still requires some polishing, but I hope that it will be ready soon.
As pointed out in japaric/vcell#10, crates like this that use references to mmio are unsound.
I propose a new design that only stores raw pointers to prevent this behavior.
We could then initialize the cell using
addr_of_mut
to avoid any creation of references before that data is initialized.The text was updated successfully, but these errors were encountered: