Bug 39096 - _cairo_fixed_from_double overflow with double > about 8 400 000
Summary: _cairo_fixed_from_double overflow with double > about 8 400 000
Status: RESOLVED MOVED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.10.3
Hardware: Other All
: medium normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-09 09:17 UTC by arno
Modified: 2018-08-25 13:55 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
testcas (514 bytes, text/x-csrc)
2011-07-09 10:09 UTC, arno
Details

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.