Bug 39096

Summary: _cairo_fixed_from_double overflow with double > about 8 400 000
Product: cairo Reporter: arno <arno>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED MOVED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.10.3   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: testcas

Description arno 2011-07-09 09:17:03 UTC
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.
Comment 1 arno 2011-07-09 10:09:35 UTC
Created attachment 48917 [details]
testcas

looks like I forgot to attach testcase.
Comment 2 arno 2011-07-09 10:54:10 UTC
This is possibly related or even the same bug as #20091.
Comment 3 GitLab Migration User 2018-08-25 13:55:21 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/265.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.