| ▲ | zephen 2 hours ago | |||||||
But even integer overflow is undefined. It's practically impossible to find a program without UB. | ||||||||
| ▲ | uecker 43 minutes ago | parent [-] | |||||||
I think this is not really true. Or rather, it depends on the UB you are talking about. There is UB which is simply UB because it is out-of-scope for the C standard, and there is UB such as signed integer overflow that can cause issues. It is realistic to deal with the later, e.g. by converting them to traps with a compiler flags. | ||||||||
| ||||||||