From 5d640eb45902df1de66f158bb7a0f02ac05681f8 Mon Sep 17 00:00:00 2001 From: "mh0310.choi" Date: Wed, 26 Aug 2015 16:06:31 +0900 Subject: Prevent:ID-275424 (Dereference null return value) Null check for clip Change-Id: I83be56637cd3e3df3942bf5c70b8c93ede483559 --- src/cairo-xcb-surface-render.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/cairo-xcb-surface-render.c b/src/cairo-xcb-surface-render.c index eec45c7f3..8cf0a3437 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); -- cgit v1.2.3