[cairo-bugs] [Bug 58061] Null pointer dereference in cairo_image_get_surface_data()

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Dec 9 14:20:39 PST 2012


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

John Ralls <jralls at ceridwen.us> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|NOTOURBUG                   |---

--- Comment #2 from John Ralls <jralls at ceridwen.us> ---
(In reply to comment #1)
> Ages ago the design was made not to work around extremely broken
> applications - Cairo never returns a NULL pointer to the application, so it
> must be injecting garbage into the library and deserves to be shot.

Really? From src/win32/cairo-win32-surface.c in git master:

cairo_surface_t *
cairo_win32_surface_get_image (cairo_surface_t *surface)
{
    if (surface->backend->type != CAIRO_SURFACE_TYPE_WIN32)
        return NULL;

    GdiFlush();
    return to_win32_display_surface(surface)->image;
}

-- 
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/20121209/c78e426b/attachment.html>


More information about the cairo-bugs mailing list