Sure, but C++ also has these issues, so the "not even C++" doesn't exactly make sense.
Sure, but C++ also has these issues, so the "not even C++" doesn't exactly make sense.
Not really. With C++, you don’t have to use manual memory management. In the typical scenario, C++ objects take care of memory without the developer having to think about it. And you have all kinds of smart pointers for the more complicated scenarios.
That doesn’t mean of course that there are no buffer overflows in C++, or use-after-free bugs. There is still plenty of room for mistakes. But C++ code following best practices tends to have far fewer vulnerabilities than comparable C code.
You seem to be taking the best possible code as the default. I will admit that the best possible C++ code is better than the best possible C code.
But yeah, in the end both of them are very dangerous tools, compared to other alternatives.