3 ms·
Overflows in SafeInt
- KonradKlause 15y agoSome background on integer overflows: http://www.fefe.de/intof.html http://www.fefe.de/intof.html
- JoachimSchipper 15y agoRegehr's current project is, essentially, fuzzing C compilers. His blog is very much worth following, if only to disabuse yourself of the notion that GCC is infallible. (Not that the others are better, mind.)
- wglb 15y agoAnd that the C language spec is either broken or to unspecific.
- KonradKlause 15y agoLike any other spec. :-)
- cpeterso 15y agoIf the SafeInt authors (Microsoft Corporation) can't avoid integer overflow bugs, then who can? btw, the SafeInt3.hpp header file is almost 7000 LOC (including comments)!
- losethos 15y agoOverengineered for 99% of applications. Likewise, do you check malloc on every call? If out of memory, I figure you're fucked anyway.