News for hackers. Stuff that matters.
Re:Fast integer overflow detection (2012) by danbruc on Sunday December 14, 2014 @05:34PM (#8749819)
Interoperability may be a factor. Everything that enters your world will tell you nothing about the possible ranges and you pretty quickly have to assume the worst case everywhere or add range limiting assertion early. It still sounds like a good idea but maybe it's harder to do than it seems.
Re:Fast integer overflow detection (2012) by nly on Sunday December 14, 2014 @05:35PM (#8749822)
Range checking early doesn't strike me as a bad thing at all.
Re:Fast integer overflow detection (2012) by danbruc on Sunday December 14, 2014 @06:21PM (#8749955)
Me neither. But it won't be for free and integer overflow is only an issue for a tiny fraction of all the code and developers are lazy...