|
|
|
|
|
by chlorion
959 days ago
|
|
It's true that it doesn't eliminate all bugs in general, but it can completely eliminate buffer overflows for example. There is no excuse to not at least have bounds checking. This is one of the most basic memory safety problems and it's trivial to prevent. Just preventing this small issue will prevent a non-trivial fraction of bugs. I don't have sudo's bug list on hand but I wouldn't be surprised if 25% or more are caused by buffer overflows. So even if it doesn't prevent all logic bugs, it cuts out a pretty big chunk of the bug list. >assuming you don't switch them off You can't switch them off. >Rust community's tendency to pitch this stuff as a security panacea I've not seen anyone claim this so far. |
|
https://doc.rust-lang.org/book/ch19-01-unsafe-rust.html