[cairo-bugs] [Bug 39096] New: _cairo_fixed_from_double overflow with double > about 8 400 000

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jul 9 09:17:07 PDT 2011


https://bugs.freedesktop.org/show_bug.cgi?id=39096

           Summary: _cairo_fixed_from_double overflow with double > about
                    8 400 000
           Product: cairo
           Version: 1.10.3
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: cworth at cworth.org
        ReportedBy: arno at renevier.net
         QAContact: cairo-bugs at cairographics.org


Hi,
when using cairo with big double numbers (ie about 8 400 000), an overflow
appears in _cairo_fixed_from_double and input is transformed to a negative
value. In attached testcase, output should be:
path: 8400000.000000 0.000000 8400000.000000 200.000000
but is actually:
path: -8377216.000000 0.000000 -8377216.000000 200.000000

bug does not appear with 8300000 and below.

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


More information about the cairo-bugs mailing list