3 ms·
It is the original reason. For example, register allocation is possible because stack smashing is UB.
by sanxiyn 4y ago
It is the original reason. For example, register allocation is possible because stack smashing is UB.
- masklinn 4y agoUB is also very much based around software incompatibilities though, not just the ability to optimise stuff. But where IB can have useful definitions to document, UB was defined so because the behaviours were considered sufficiently divergent that allowing them was useless, and so it was much easier to just forbid them all.