summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2024-06-26 20:43:32 +0930
committerAdrian Johnson <ajohnson@redneon.com>2024-06-27 07:07:22 +0930
commitc8ce9f1900a4a36434c1d959ed08668746436081 (patch)
treebad06cb1bb1f3d5bb0f3d65e6d61e68de80d80e7 /src
parent545073d7edb28f6e58dd120b943a37af6253b5c8 (diff)
Check return value of _cairo_boxes_copy_to_clip()
Fixes: #850
Diffstat (limited to 'src')
-rw-r--r--src/cairo-clip-boxes.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cairo-clip-boxes.c b/src/cairo-clip-boxes.c
index 3ebcd509c..777b7ddc1 100644
--- a/src/cairo-clip-boxes.c
+++ b/src/cairo-clip-boxes.c
@@ -318,7 +318,10 @@ _cairo_clip_intersect_boxes (cairo_clip_t *clip,
goto out;
}
- _cairo_boxes_copy_to_clip (boxes, clip);
+ if (!_cairo_boxes_copy_to_clip (boxes, clip)) {
+ clip = _cairo_clip_set_all_clipped (clip);
+ goto out;
+ }
_cairo_boxes_extents (boxes, &limits);