News for hackers. Stuff that matters.
Re:With Undefined Behavior, Anything Is Possible by jl6 on Saturday August 18, 2018 @09:11AM (#17788295)
Could one write a C compiler that intentionally caused noisy havoc in every situation left undefined by the language spec? As opposed to trying to do something reasonable. Then at least you’d know that you were on shaky ground?
Re:With Undefined Behavior, Anything Is Possible by raphlinus on Saturday August 18, 2018 @10:56AM (#17788734)
That is more or less what the sanitizers do, and it's a reasonable approach to trying to discover UB.