News for hackers. Stuff that matters.
Re:Simple Linux kernel memory corruption bug can lead to com... by scns on Wednesday October 20, 2021 @04:19AM (#28928123)
Well, there is the rub. The safe thing to do is more verbose, the unsafe way is in muscle memory. Rust did it the other way around deliberately. But that is easy if you do a new design and don't need to retrofit a safe solution. No snark intended.
Re:Simple Linux kernel memory corruption bug can lead to com... by pjmlp on Wednesday October 20, 2021 @09:54AM (#28930712)
That is why one should always enable the compiler switches that turn operator[]() into at(), and then only disable them on case by case scenario, if proven worthwhile to do so.