[cairo-commit] src/cairo-surface-fallback.c
Carl Worth
cworth at kemper.freedesktop.org
Mon Mar 13 12:27:32 PST 2006
src/cairo-surface-fallback.c | 3 +++
1 files changed, 3 insertions(+)
New commits:
diff-tree 6f0d8eedc504e8af2224c502be25dc82b5df70f4 (from 79075b2cb1ce1397506fc10572df96f6fd00ecc3)
Author: Carl Worth <cworth at cworth.org>
Date: Mon Mar 13 12:25:25 2006 -0800
_clip_and_composite_trapezoids: Avoid NULL pointer dereference due to OOM.
This closes bug #6197:
Null pointer dereference on OOM in _clip_and_composite_trapezoids()
https://bugs.freedesktop.org/show_bug.cgi?id=6197
diff --git a/src/cairo-surface-fallback.c b/src/cairo-surface-fallback.c
index 9dde31f..9b6cfd6 100644
--- a/src/cairo-surface-fallback.c
+++ b/src/cairo-surface-fallback.c
@@ -549,6 +549,9 @@ _clip_and_composite_trapezoids (cairo_pa
return status;
clear_region = _cairo_region_create_from_rectangle (&extents);
+ if (clear_region == NULL)
+ return CAIRO_STATUS_NO_MEMORY;
+
status = _cairo_clip_intersect_to_region (clip, clear_region);
if (status)
return status;
More information about the cairo-commit
mailing list