Re:Git Security Vulnerabilities Announced
by robmccoll on Tuesday January 17, 2023 @03:23PM
(#34418356)
In this case it's really that the cost of determining if an overflow did occur or will occur on modern architectures is too high and the likelihood too low for it to be reasonable to perform the checks in most cases in native code. Might be different for interpreted languages depending on a lot of things (whether or not they even use integer arithmetic, whether or not they default to some arbitrary precision integers by default, etc.). If common architectures automatically interrupted on overflow rather than setting a flag at no additional cost, I'd think you'd see safety guarantees instantly.
[ Parent
| on HN ]
There are no comments on this comment yet.