[cairo-bugs] [Bug 77931] NULL pointer dereference : _clip_and_composite_boxes() tries to destroy __cairo_clip_all's path

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Apr 27 11:02:25 PDT 2014


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

--- Comment #4 from Alexandre Rostovtsev <tetromino at gentoo.org> ---
(In reply to comment #3)
> if ( extents->clip->path != NULL ) {
>     cairo_clip_t *clip;
>     clip = _cairo_clip_copy (extents->clip);
>     clip = _cairo_clip_intersect_boxes (clip, boxes);
>     clip = _cairo_clip_intersect_boxes (clip, boxes); // this crashes due to  NULL dereference
> }

Typo, meant to say:

if ( extents->clip->path != NULL ) {
    cairo_clip_t *clip;
    clip = _cairo_clip_copy (extents->clip);
    clip = _cairo_clip_intersect_boxes (clip, boxes);
    clip = _cairo_clip_path_destroy (clip->path); // this crashes due to NULL
dereference
}

-- 
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/20140427/5f51b43d/attachment.html>


More information about the cairo-bugs mailing list