[cairo-bugs] [Bug 15761] cairo_surface_set_device_offset crashes pidgin on windows

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jul 15 19:43:34 PDT 2008


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





--- Comment #11 from Carl Worth <cworth at cworth.org>  2008-07-15 19:43:32 PST ---
(In reply to comment #8)
> _gdk_drawable_ref_cairo_surface() can return NULL, but
> gdk_window_begin_paint_region() does not check if it did so before passing the
> result to cairo_surface_set_device_offset(), which also doesn't check if it's
> NULL before dereferencing it. 

That's quite possible. And for cairo, this is the expected behavior of this
function.

If a cairo function returns a cairo_status_t value, then it will return
CAIRO_STATUS_NULL_POINTER if you pass it NULL. But the void functions
will simply dereference the pointer and crash.

If you're interested in seeing that behavior change at all, then that
would be a discussion to be had on the cairo mailing list, (see
http://cairographics.org/lists )

-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.
You are the assignee for the bug.


More information about the cairo-bugs mailing list