2 ms·
Not really. Address Sanitizer must work with the existing ABI, which means it has a lot of overhead for an imperfect result.
by saagarjha 3y ago
Not really. Address Sanitizer must work with the existing ABI, which means it has a lot of overhead for an imperfect result.
- jenadine 3y agoWhat could be done better if it could break the ABI?
- saagarjha 3y agoYou 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.