Re:sudo and su Being Rewritten in Rust for Memory Safety
by duped on Saturday April 29, 2023 @03:07PM
(#35756048)
Rust has a minimal runtime (0), and links to libc by default which brings in the libc runtime (so it's not like C is any better). Except that the Rust runtime is written in Rust, which is nice for memory safety.
(0) https://prev.rust-lang.org/en-US/faq.html#does-rust-have-a-r...
Re:sudo and su Being Rewritten in Rust for Memory Safety
by MattPalmer1086 on Saturday April 29, 2023 @03:12PM
(#35756104)
Well, opinions in the Rust community clearly differ:
"Rust is blazingly fast and memory-efficient: with no runtime or garbage collector" [0]
I guess it depends on what you mean by a runtime. Panic handlers and initialisation code is a pretty small runtime.
Nobody is suggesting that a language solves all security issues.
It does have much better memory safety than C, which is the cause of the majority of security issues.