Bug 11420 - cairo "getter" functions should not leave return values uninitialized
Summary: cairo "getter" functions should not leave return values uninitialized
Status: RESOLVED MOVED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.5.1
Hardware: Other All
: medium normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-29 13:46 UTC by Carl Worth
Modified: 2018-08-25 13:46 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Carl Worth 2007-06-29 13:46:57 UTC
I just noticed that cairo_scaled_font_glyph_extents returns
immediately if scaled_font->status is in an error state.

It should instead fill in the return values with benign results, (0.0
or so).

I think _most_ other getter functions already do that, but it's worth
auditing all of them to check. (And probably worth writing a test to
try to exercise as much of this as possible---we do want to improve
test coverage anyway.)

-Carl
Comment 1 GitLab Migration User 2018-08-25 13:46:03 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/185.


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.