Bug 11420

Summary: cairo "getter" functions should not leave return values uninitialized
Product: cairo Reporter: Carl Worth <cworth>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED MOVED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.5.1   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

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.