Reply to post: Re: changing languages isn't going to fix this.

Rust in peace: Memory bugs in C and C++ code cause security issues so Microsoft is considering alternatives once again

DrXym

Re: changing languages isn't going to fix this.

Rust stops entire classes of problem that C/C++ doesn't care about.

For example C/C++ doesn't care if you forget to protect some shared data. Rust does and won't even compile until you do. C/C++ doesn't care if you call a NULL pointer, Rust doesn't even have pointers in safe mode, and won't let you call a reference either unless lifetime guarantees are satisfied. C/C++ doesn't care if you write off the end of a buffer, Rust will panic and bring your program down with a stack trace.

Most CVEs are for these things - NPEs, buffer overflows, corruption, data races. All gone just by using a more stringently checked language.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon