r/programming • • Apr 09 '14

Theo de Raadt: "OpenSSL has exploit mitigation countermeasures to make sure it's exploitable"

[deleted] — view deleted post

2.0k Upvotes

661 comments sorted by

View all comments

Show parent comment

11

u/partyboy690 Apr 09 '14

Yes C is very basic but to say it's not powerful is absolutely ludicrous, reddit is hosted on web servers that are running an operating system written in C, more than likely the web server is heavily C based(if it's Apache or Nginx) and the computer you're using to read this thread is running an operating system written in C also more than likely your browser if it's Gecko or Webkit based is heavily C and C++ oriented. There's a difference between power and being basic. You have to write twenty lines of code in C what you could do in one on Python but Python wouldn't exist only for its runtime written in C.

Also it is very versatile specifically because it's as you say high level assembler, embedded systems are all heavily C based and lots of these things make your life easier. Don't get me wrong, C is a very unsafe language I know, I've fixed a myriad of bugs myself that wouldn't exist in Java, Python etc.... but basic programming practices and well tested code and you should be fine. If the OpenSSL guys didn't use their own allocation routine then there wouldn't be this mess, leave that to the maintainers of standard libraries, they're incredibly well vetted and used every single second by thousands and thousands of programs worldwide, those guys wouldn't write their own encryption library so the OpenSSL team shouldn't "enhance" the standard C library. This is a fault of the OpenSSL team and not the C language.

I'm not criticising your opinion btw, C can cause dangerous bugs but we can't all get on the C and C++ hate train when this bug is easily mitigated, there are operating system checks that can easily mitigate such a scenario.