-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
A soundness bug in std::fs #32670
Copy link
Copy link
Closed
Labels
T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
This program writes to arbitrary memory, violating Rust's safety guarantees, despite using no unsafe code:
Because the filesystem APIs cannot be made safe (blocking
/procpaths specifically will not work, because symlinks can be created to it),File::create,File::open, andOpenOptions::openshould be marked unsafe. I am working on an RFC for that right now.