[Webkit-unassigned] [Bug 40367] BigInteger Math Library Javascript Bug on Safari 5 (webkit 533.16) under "32bit" mode

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 9 14:55:56 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=40367





--- Comment #3 from Darth <priyajeet.hora at gmail.com>  2010-06-09 14:55:54 PST ---
Additional information from the author -


After some further investigation, there appears to be a bug in Safari's JS 
engine.  The following code/URL demonstrates the problem:

javascript:var a=new Array();a[0]=Math.pow(10,8);alert((a[0]>>27)|0);

If you inspect the code, you can easily prove to yourself that the correct 
value for the alert is "0", which is what you get on most browsers.  On 
Safari for Windows 32-bit, I get "100000000".

Given the subtlety of this bug and the fact that I don't really 
understand its root cause, I don't think it makes sense to try to 
make a workaround in JSBN since it is not clear where else this bug might 
manifest itself.  One of us should file a bug report with Apple for this.

Tom

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list