Re: [Full-disclosure] Firefox 2.0.0.7 has a very serious calculation bug



carl hardwick wrote:
PoC concept here:
javascript:5.2-0.1
(copy this code into address bar)

Firefox 2.0.0.7 result: 5.1000000000000005 (WRONG!)
Internet Explorer 7 result: 5.1 (OK)

In IE7 and Opera I get the same thing you do for Firefox. This is not
surprising because the ECMAScript specification says that floating point
operations must comply with ANSI/IEEE Std 754-1985: IEEE Standard for
Binary Floating-Point Arithmetic.

The ECMAScript version 4 proposal introduces a decimal type intended to fix
up some of weirdness caused by mapping base-2 floating point rounding back
into base-10 notation.

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/



Relevant Pages

  • Re: annotation doesnt float in IE
    ... > It is, for IE. [and Opera, which behave different than Safari, FireFox, iCab, on a simple floating behavior of CSS] ... I think the behavior of IE and Opera is wrong. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Alter Rechner
    ... (Sowieso drauf: Seamonkey 1.1.11, mein Standardbrowser.) ... schnell installieren, wobei der Firefox-Installer bei Bedarf m.E. ein ... Danach erkennt man dann aber recht schnell, daß Opera immer noch ... Firefox, der sich explizit auch an unbedarftere Nutzer richtet, stolpert ...
    (de.comp.hardware.misc)
  • Re: TVGuide.com now officially useless
    ... Other browsers have that "go" menu but Opera ... I downloaded Firefox 1.5 and gave it a quick test run. ... I still don't like the toolbar, it reminds me too much of IE and the ... Firefox has a bookmarks toolbar and it can import Opera ...
    (rec.arts.tv)
  • Re: Google
    ... >>> But at least they can be allowed to scroll off. ... > Most web sites override the background and font color. ... Opera also had a button that fit it all into the window. ... recognized an equivalent in Firefox. ...
    (rec.arts.sf.fandom)
  • Re: Opera made free
    ... > Roy Schestowitz wrote: ... > my browser. ... (In Firefox I have to remember to "save all open bookmarks"). ... > I don't like the design of Opera, however, it looks clumsy and odd. ...
    (alt.internet.search-engines)