[cairo-bugs] [Bug 87893] New: use of an uninitialized variable in error path

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Dec 30 23:20:30 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=87893

            Bug ID: 87893
           Summary: use of an uninitialized variable in error path
           Product: cairo
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: xlib backend
          Assignee: chris at chris-wilson.co.uk
          Reporter: sixtysix at inwind.it
        QA Contact: cairo-bugs at cairographics.org

in _cairo_xlib_font_fini

http://cgit.freedesktop.org/cairo/tree/src/cairo-xlib-render-compositor.c#n967

when _cairo_xlib_display_acquire does not return SUCCESS,
'display' is not initialized:

http://cgit.freedesktop.org/cairo/tree/src/cairo-xlib-display.c#n366

so after BAIL: it is better to use priv->device and not
&display->base

http://cgit.freedesktop.org/cairo/tree/src/cairo-xlib-render-compositor.c#n981

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo-bugs/attachments/20141231/0fdace91/attachment.html>


More information about the cairo-bugs mailing list