|
|
|
|
|
by bhk
2495 days ago
|
|
The C standard includes an appendix that lists ~200 examples of undefined behavior. This list does not claim to be exhaustive. Often, what constitutes undefined behavior is non-obvious (and not well justified). For example, when adding two signed integers results in an overflow, it is undefined behavior even if your program never uses the result. Due to C's definition of "undefined" behavior, it means that all of the guarantees we rely on to ensure security go out the window whenever the programmer steps on one of these land mines. |
|