[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3eab9ed60709281248j2c61a519y9a0a9a23d018db48@mail.gmail.com>
Date: Sat, 29 Sep 2007 01:18:16 +0530
From: "Jimby Sharp" <jimbysharp@...il.com>
To: "Michal Zalewski" <lcamtuf@...ne.cc>
Cc: full-disclosure@...ts.grok.org.uk, carl hardwick <hardwick.carl@...il.com>
Subject: Re: Firefox 2.0.0.7 has a very serious
calculation bug
Thanks.
On 9/29/07, Michal Zalewski <lcamtuf@...ne.cc> wrote:
> On Sat, 29 Sep 2007, Jimby Sharp wrote:
>
> > I don't get the same from C-style double arithmetics. Could you provide
> > a sample code that you believe should show the same behavior?
>
> If you don't, it's presumably because the subtraction is optimized out by
> the compiler, or because you printf() with an insufficient precision 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); }
>
> /mz
>
_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/
Powered by blists - more mailing lists