I'm a rust dev, in practice, unsafe basically never causes vulnerabilities because it's contained, encapsulated behind safe api and there are like 20 different tools/systems in place to protect against vulnerabilities. cargo-geiger, cargo-audit, MIRI, fuzzing, multiple sanitizers. And then rustc has its own safety protocols like killing itself when an invariant fails (although that one is rarely used)
Generating and running assembly is inherently memory-unsafe. It's silly to criticize the core libraries for the possibility of memory-unsafe code when you're still trusting the entire compiler, made by the same people, to only produce memory-safe code. Those libraries are practically part of the compilation logic.
View all comments
Show parent comment
-3
u/Stunning_Ride_220 Oct 22 '26
Rust still unsafe much in it's core libraries?