News for hackers. Stuff that matters.
Re:A bit of background on compilers exploiting signed overflow by dsfuoi on Sunday May 08, 2016 @03:05PM (#11655271)
It looks easy but it isn't.

The second example causes unexpected behavior (and probably ub later) if: min + step > MIN_TYPE_MAX

The last example causes undefined behavior if: max - min < step - 1.

There are no comments on this comment yet.