Re:“gcc will quietly break nearly half of all the packages t...
by im3w1l on Saturday October 24, 2015 @01:37PM
(#10444265)
Undefined behavior has a very specific meaning for C. It doesn't mean "not 100% precise". It means 100% imprecise. The C standard only gives any guarantees on what your program will do if you never invoke UB. If you do, well then it can do literally whatever it wants including deleting all your files.
[ Parent
| on HN ]
Re:“gcc will quietly break nearly half of all the packages t...
by MaulingMonkey on Saturday October 24, 2015 @02:05PM
(#10444361)
Literally deleting all your files at that. It's the part of the language that says your compiler is completely justified in allowing you to write that buffer overflow vulnerability that can trample executable memory, which is then used by a malicious attacker to do literally whatever they want, including deleting all your files. Or worse.