integer overflows

I've been tracking down some integer overflows in Firefox and seem to have narrowed some of them down to the SafeInt library. As an example, the "a = -a;" assignment at SafeInt3.hpp:2102 is someti...

Id #14278 | Release: None | Updated: Sep 25 2011 at 10:38 PM by noloader | Created: Sep 21 2011 at 8:32 PM by regehr

IntrinsicMultiplyUint64 and IntrinsicMultiplyInt64 missing "inline" keyword

VS 2010 gives a linker error: Error 95 error LNK2005: "bool __cdecl IntrinsicMultiplyUint64(unsigned __int64 const &,unsigned __int64 const &,unsigned __int64 *)" (?IntrinsicMultiplyUint64@@YA_NAE...

Id #13029 | Release: None | Updated: Mar 22 2011 at 6:24 PM by dcleblanc | Created: Feb 16 2011 at 7:40 PM by kgriffs

bug gcc 4.3.2 and 4.4.1 int64_t

i try to use multiply on int64_t boost::int64_t a=2; boost::int64_t b=3; boost::int64_t c; SafeMultiply<boost::int64_t,boost::int64_t>(a,b,c); gcc 4.3.2 and 4.4.1 takes compile time error...

Id #8791 | Release: SafeInt 3.0.13 | Updated: Feb 4 2010 at 5:11 AM by dcleblanc | Created: Sep 16 2009 at 11:11 AM by stuav

Potential performance gain from non-member operator+

Hi David, I very much enjoyed your show at http://channel9.msdn.com, together with Ale Contenti, and I'm glad to hear that SafeInt is doing so well at Microsoft. You have clearly put a lot of eff...

Id #7910 | Release: None | Updated: Jun 19 2009 at 11:03 PM by Niels_Dekker | Created: Jun 19 2009 at 11:03 PM by Niels_Dekker

Need to use standard defines for GCC, remove warnings from test rig

Switch to #ifdef __GNUC__, suppress warnings from test rig, try seeing if we can raise warning level to -Wall.

Id #6711 | Release: None | Updated: Dec 3 2008 at 5:51 PM by dcleblanc | Created: Dec 3 2008 at 5:51 PM by dcleblanc

SafeInt does not compile correctly on MacOS

We're getting compiler errors out of anything where the return type is known and we accept SafeInt<T> op SafeInt<U>.

Id #6710 | Release: None | Updated: Dec 3 2008 at 5:49 PM by dcleblanc | Created: Dec 3 2008 at 5:49 PM by dcleblanc

Publish SafeInt tests

Hello David, a great piece of work you've done here, congratulations. A thing though that I'm missing are the unit tests for all that code (I'm certain you've got these). The reason I'm asking is ...

Id #6609 | Release: None | Updated: Nov 23 2008 at 9:22 PM by dcleblanc | Created: Nov 16 2008 at 1:44 PM by Superlexx

  • 1-7 of 7 Work Items
    • Previous
    • 1
    • Next
    • Showing
    • All
    • Work Items