Prevent:ID-275424 (Dereference null return value) Null check for clip 91/46791/1
authormh0310.choi <mh0310.choi@samsung.com>
Wed, 26 Aug 2015 07:06:31 +0000 (16:06 +0900)
committermh0310.choi <mh0310.choi@samsung.com>
Wed, 26 Aug 2015 07:11:11 +0000 (16:11 +0900)
Change-Id: I83be56637cd3e3df3942bf5c70b8c93ede483559

src/cairo-xcb-surface-render.c

index eec45c7..8cf0a34 100644 (file)
@@ -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);