News for hackers. Stuff that matters.
Re:C for All by loup-vaillant on Saturday March 24, 2018 @10:12AM (#16666664)
> "perform UB, then check whether it happened" doesn't actually work

This raises an interesting point, because in many cases, assuming 2's complement and wrapping around, checking for overflow after the fact, as opposed to preventing it from happening in the first place, is actually easier. (And actually works if you use the `-fwrap` flag.)

The right thing should be easier to do than the wrong thing. It's a shame this is not the case here.

There are no comments on this comment yet.