by otabdeveloper4 · 4y ago · 0 comments
You don't understand what the memory safety promised by Rust actually does.
(No, it won't save you from buffer overruns. Only from segfaults.)
With a buffer overrun in C, you can smash the stack or other interesting structures, and put executable code of your choice in it. If you have the right kind if container breach and privilege escalation exploit lying around for the target OS, you can pwn the entire infrastructure eventually.
And no, I don't think you can memcpy / strcpy data[*i++] with abandon in Rust without first marking such code unsafe. To say nothing of concurrent modification which is another popular source of index overruns, and more.
As for the rest of your comment - good job on completely missing the point.
When we talk about "buffer overflows", privilige escalation exploits are the least of our problems.
https://hackernoon.com/null-the-billion-dollar-mistake-8t5z3...
Telling your boss that the frontend is splattered with 'undefined' and all the balances are unsynchronized, but, hey, it's not a bug because no segfaults were involved in the process is a very good way to get fired.