3 ms·
You could pass around fat pointers everywhere. This is more efficient than probabilistically setting up redzones.
by saagarjha 3y ago
You could pass around fat pointers everywhere. This is more efficient than probabilistically setting up redzones.
- Quekid5 3y agoTrue, but that doesn't address (heh) the briefly-goes-out-of-bounds-and-then-in-bounds scenario. Again, I'm not 100% that that's technically UB, but I think so? (It would have be to be for very esoteric addressing modes, maybe relevant on ancient pre-linear address space architectures?)
- saagarjha 3y agoThat would be a check on each arithmetic operation.