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

2

u/OmnipotentEntity Apr 10 '14

http://blog.llvm.org/2011/05/what-every-c-programmer-should-know.html

Undefined Behavior

The program could do anything at all, crash, order pizza, work properly, launch nukes, anything.

Unspecified Behavior

Like undefined behavior, but it has to consistently do the same thing each time. Like launch nukes every time, or order pizza every time. It can't order pizza, work correctly, then launch nukes.

Implementation Defined Behavior

The compiler has to define what happens. It could launch eMacs with a Tower of Hanoi simulation, launch nethack, or delete files off of your computer. Or work properly. Or work subtly improperly leaving a security hole.