Re:Goodbye C++, Hello C
by UncleMeat on Saturday June 26, 2021 @04:52PM
(#27645734)
I don't believe that it is possible to write safe C (or C++), even if you are both very careful and also among the most skilled C developers out there. Every sizable project in C has had critical vulnerabilities. It is not possible to train engineers on a team of any meaningful size to consistently write bug free code and catch bugs in code review. Sanitizers, fuzzing, and static analysis all help but are insufficient in the face of the utterly impossible task of writing safe C programs, let alone evolving safe C programs.
Look at all the very smart people that tried and completely failed to write libraries that do such basic things as copying strings.
Look at all the very smart people that tried and completely failed to write libraries that do such basic things as copying strings.