projects
/
platform
/
core
/
graphics
/
cairo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aed5209
)
Prevent:ID-275424 (Dereference null return value) Null check for clip
91/46791/1
author
mh0310.choi
<mh0310.choi@samsung.com>
Wed, 26 Aug 2015 07:06:31 +0000
(16:06 +0900)
committer
mh0310.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
patch
|
blob
|
history
diff --git
a/src/cairo-xcb-surface-render.c
b/src/cairo-xcb-surface-render.c
index
eec45c7
..
8cf0a34
100644
(file)
--- 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);