[Bug 7604] Floating point exception - Fuzz Testing

bugzilla at busybox.net bugzilla at busybox.net
Tue Nov 18 13:34:05 UTC 2014


https://bugs.busybox.net/show_bug.cgi?id=7604

Denys Vlasenko <vda.linux at googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Denys Vlasenko <vda.linux at googlemail.com> 2014-11-18 13:34:04 UTC ---
The same happens in bash.

The cause is that MAX_NEGATIVE_INT / -1 = MAX_POSITIVE_INT+1 and thus is not
representable. Therefore these ops fail:

                        rez /= right_side_val;

                        rez %= right_side_val;

They dont fail in 32-bit case because 64-bit wide divide in 32-bit case is
handled as a several divides of smaller width. The result is wrong, though
(since correct result is not representable),

Fixed in git. Thanks!

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list