zlacker

[parent] [thread] 2 comments
1. eric4s+(OP)[view] [source] 2022-10-02 15:11:11
“Rust is safe” is generally the same thing as saying “I like strongly typed languages”.

None of that is going to save us from bad code.

Some of the biggest systems that run the world are not written with either safe code nor strongly typed languages.

Yes I would say strongly typed languages and memory safe languages help make coding easier and indeed save time and some bugs.

But when you get past making the kinds of errors that cause memory problems or bad types…

You are still left with 95% of the bugs and logic errors anyway.

Still, 5% savings in productivity is not nothing.

replies(1): >>Jweb_G+c31
2. Jweb_G+c31[view] [source] 2022-10-02 21:44:54
>>eric4s+(OP)
Unfortunately for this theory, about 70% of C and C++ CVEs are memory safety issues, not 5%.
replies(1): >>jstimp+ci1
◧◩
3. jstimp+ci1[view] [source] [discussion] 2022-10-02 23:34:34
>>Jweb_G+c31
> 95% of bugs are logic errors

> 70% of CVEs are memory errors

No contradiction here.

[go to top]