-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Soundness issues in crates for self-referential structs #1709
Comments
@Manishearth hopefully |
AIUI no. In general yoke exposes a more limited form of self-reference and is not as susceptible to the issues found in general self-ref crates. Personally because these rules are still in flux I do not consider "fails miri" to in and of itself be an indication of unsoundness, fwiw. I expect that when the time comes to actually start exploiting the UB surface provided by stacked borrows1; the opsem group will have also provided sufficient APIs to do things like this in ways they can guarantee are sound. That said, yoke does not currently trip miri anyway. cc @CAD97 Footnotes
|
is it correct to say |
Most crates that allow self-referential structs are unsound. See Voultapher/self_cell#41 for a list of crates and issues.
We have advisories for Ourouboros (RUSTSEC-2023-0042) and owning-ref (https://rustsec.org/advisories/RUSTSEC-2022-0040.html), we should cover the remaining crates with advisories as well.
The text was updated successfully, but these errors were encountered: