← Back to context

Comment by Gibbon1

10 months ago

Keep believing that Rust magically prevents you from getting owned when you fuck up.

That is a fallacy. No one has claimed that Rust magically prevents you from getting owned. Quite to the contrary: there is no magic in preventing most, if not all memory handling errors. Which are the most common reason for security problems. Removing one category of errors entirely would free a lot of resources to deal with the remaining ones.

  • Even the "removing one category of errors" is not true when you use unsafe blocks in Rust, which is done generously in system programming.

    • Is that so? How large parts of the Rust kernel drivers in existence are inside unsafe blocks?

      Yes, unsafe, as the name says, allows unsafe parts. But it is trivial to audit code for the usage of unsafe. Which means, everything else isn't. And it is there where the most common mistakes are made.

      7 replies →