News for hackers. Stuff that matters.
Re:“What the Hardware Does” Is Not What Your Program Does: U... by userbinator on Monday July 15, 2019 @07:25AM (#20439744)
The problem is that if you did that then you couldn't check regular C programs anymore, since overflow would be valid.

That also means it's possible to write overflow checks easily, and ones that the compiler won't optimise out. Before compilers became UB-crazy, you could write such checks in the most straightforward way, and get exactly what you expected. I'd consider that a far bigger advantage for security than arguing for the existence of a tool whose sole reason for existence seems to be due to the presence of UB in the first place.

There are no comments on this comment yet.