Re: [Full-disclosure] Firefox 2.0.0.7 has a very serious calculation bug
- From: <full-disclosure@xxxxxxxxxxxx>
- Date: Sat, 29 Sep 2007 08:35:15 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Not so much it required such a long thread.
On Fri, 28 Sep 2007 15:29:18 -0400 Rodrigo Barbosa
<rodrigob@xxxxxxxxxxxx> wrote:
On Fri, Sep 28, 2007 at 09:09:02PM +0200, Michal Zalewski wrote:-----BEGIN PGP SIGNATURE-----
On Sat, 29 Sep 2007, Jimby Sharp wrote:you provide
I don't get the same from C-style double arithmetics. Could
optimized out bya sample code that you believe should show the same behavior?
If you don't, it's presumably because the subtraction is
the compiler, or because you printf() with an insufficientprecision in
format spec. The following should do the trick:
volatile double a = 5.2;
volatile double b = 0.1;
main() { printf("%.16lf\n",a-b); }
Confirmed here with:
gcc (GCC) 4.1.1 20070105 (Red Hat 4.1.1-52)
Actually quite interesting.
--
Rodrigo Barbosa
"Quid quid Latine dictum sit, altum viditur"
"Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)
Note: This signature can be verified at https://www.hushtools.com/verify
Charset: UTF8
Version: Hush 2.5
wpwEAQECAAYFAkb+RoIACgkQ+dWaEhErNvTOsgP/ZcU7BhwhtlxVR3DGfKQU7mn5uLVR
cN9rMB+G+yvM8CtdwrN3d0aJDCd2LFIal0XhnzvlPIV86wAhWic2gS89TRGHt9J82mKp
PyqHJWN0OAfMY0EjbURREjaz4dxmfV0d+T8la5b/vLRDhcI7HlH7YvLBrLcuDSAcySZX
5BtQnKE=
=uIWZ
-----END PGP SIGNATURE-----
--
Click here to find great prices on contact lenses. Save now.
http://tagline.hushmail.com/fc/Ioyw6h4ea3BpGtXYQZ6VgDfUuhClr58eVgjo8X0nsCkACj902Us7mY/
_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/
- Prev by Date: Re: [Full-disclosure] .NET REMOTING on port 31337
- Next by Date: [Full-disclosure] Testing DidTheyReadIt.com
- Previous by thread: Re: [Full-disclosure] Firefox 2.0.0.7 has a very serious calculation bug
- Next by thread: Re: [Full-disclosure] Firefox 2.0.0.7 has a very serious calculation bug [FIB FOUND/CONFIRMED]
- Index(es):
Relevant Pages
|
|