OT: PHP 32 bit numbers security issue
Michael Tewner
tewner at gmail.com
Wed Jan 5 20:14:30 IST 2011
2011/1/5 shimi <linux-il at shimi.net>
>
> On Wed, Jan 5, 2011 at 1:52 PM, shimi <linux-il at shimi.net> wrote:
>
>>
>> It has something to do with the precision attempting algorithm of floating
>> point numbers, and the way it is done on fpu87 in 32bit processors. It tries
>> to get close to the number below a certain point which is impossible, and
>> the algorithm does not check to see if it is not actually progressing in
>> getting closer to the minimal precision error. Hence it's an infinite loop.
>>
>> Compiling with -mfpmath=sse will also solve the problem.
>>
>>
> And a more thorough explanation:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=323#c109
>
> -- Shimi
>
>
Hi all -
A really great paper concerning floating point representation can be found
at http://docs.sun.com/source/806-3568/ncg_goldberg.html - What Every
Computer Scientist Should Know About Floating-Point Arithmetic
-Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20110105/a2075901/attachment.html>
More information about the Linux-il
mailing list