From: mh0310.choi Date: Wed, 26 Aug 2015 07:06:31 +0000 (+0900) Subject: Prevent:ID-275424 (Dereference null return value) Null check for clip X-Git-Tag: submit/tizen/20151214.061957~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d640eb45902df1de66f158bb7a0f02ac05681f8;p=platform%2Fcore%2Fgraphics%2Fcairo.git Prevent:ID-275424 (Dereference null return value) Null check for clip Change-Id: I83be56637cd3e3df3942bf5c70b8c93ede483559 --- diff --git a/src/cairo-xcb-surface-render.c b/src/cairo-xcb-surface-render.c index eec45c7..8cf0a34 100644 --- a/src/cairo-xcb-surface-render.c +++ b/src/cairo-xcb-surface-render.c @@ -3638,6 +3638,9 @@ _cairo_xcb_render_compositor_paint (const cairo_compositor_t *compositor, return CAIRO_STATUS_SUCCESS; } + if (composite->clip == NULL) + return CAIRO_STATUS_NULL_POINTER; + _cairo_clip_steal_boxes(composite->clip, &boxes); status = _clip_and_composite_boxes (surface, op, source, &boxes, composite); _cairo_clip_unsteal_boxes (composite->clip, &boxes);