3 ms·
How does 5 work in practice? Surely no one is actually checking if their arithmetic overflows, especially from user-supplied or otherwise external values. Is th
by Spivak 2y ago
How does 5 work in practice? Surely no one is actually checking if their arithmetic overflows, especially from user-supplied or otherwise external values. Is there any use for the normal +?
- dullcrisp 2y agoYou think no one checks if their arithmetic overflows?
- Spivak 2y agoI'm sure it's not literally no one but I bet the percent of additions that have explicit checks for overflow is for all practical purposes indistinguishable from 0.
- nox101 2y agoLots of secure code checks for overflow fillBufferWithData(buffer, data, offset, size) You want to know that offset + size don't wrap past 32bits (or 64) and end up with nonsense and a security vulnerability.