News for hackers. Stuff that matters.
Re:“What the Hardware Does” Is Not What Your Program Does: U... by enedil on Monday July 15, 2019 @01:17AM (#20438325)
This isn't the reason why signed overflow is UB in C.
Re:“What the Hardware Does” Is Not What Your Program Does: U... by saagarjha on Monday July 15, 2019 @02:19AM (#20438571)
As far as I can tell, signed overflow is undefined behavior because when the standard was defined there were a lot of machines where it would trap or do something weird, and for some reason the standards authors did not choose to make it implementation-defined behavior.