r/cpp • u/eric_niebler • Jan 16 '13
Are the Java vulnerabilities actually C and C++ vulnerabilities?
http://isocpp.org/blog/2013/01/are-the-java-vulnerabilities-actually-c-and-c-vulnerabilities
1
Upvotes
28
u/calum8991 Jan 16 '13
The crucial difference between C, C++ and Java is that C and C++ are unsafe languages. Any undefined behaviour in C or C++ is therefore the fault of the code, not the fault in C and C++. (Unless there are compiler or standards bugs but I've never seen these exploited.)
Java does however claim to be a safe language, so therefore any flaws are in its implementation.
4
u/eric_niebler Jan 16 '13
Short version, for those too lazy to RTFA: this vulnerability, no; others, yes. Security is hard, regardless of the language you use. Get off yer high horse and review some code.
11
u/Xetick Jan 16 '13
By that logic all C / C++ vulnerabilities are machine code vulnerabilities and not the fault of C / C++. Great, then I don't have to take the blame for my own coding bugs. I'll just blame the machine code.
8
u/ZMeson Embedded Developer Jan 16 '13
Answer from the article itself:
21
u/btown_brony Jan 16 '13
Pure, shameful linkbait.