[cairo-bugs] [Bug 11420] New: cairo "getter" functions should not leave return values uninitialized

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jun 29 13:47:23 PDT 2007


http://bugs.freedesktop.org/show_bug.cgi?id=11420

           Summary: cairo "getter" functions should not leave return values
                    uninitialized
           Product: cairo
           Version: 1.5.1
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: cworth at cworth.org
        ReportedBy: cworth at cworth.org
         QAContact: cairo-bugs at cairographics.org


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


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


More information about the cairo-bugs mailing list