[gegl/soc-2011-warp: 22/31] gegl_buffer_get_unlocked: fix a potential dereference of null pointer
- From: Michael Murà <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/soc-2011-warp: 22/31] gegl_buffer_get_unlocked: fix a potential dereference of null pointer
- Date: Thu, 4 Aug 2011 16:07:08 +0000 (UTC)
commit 0754262ec710e1b7652fc92f7152cf7576a5fcb2
Author: Michael Murà <batolettre gmail com>
Date: Tue Aug 2 10:46:17 2011 +0200
gegl_buffer_get_unlocked: fix a potential dereference of null pointer
gegl/buffer/gegl-buffer-access.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-access.c b/gegl/buffer/gegl-buffer-access.c
index 5d8e5fe..b840309 100644
--- a/gegl/buffer/gegl-buffer-access.c
+++ b/gegl/buffer/gegl-buffer-access.c
@@ -954,6 +954,8 @@ gegl_buffer_get_unlocked (GeglBuffer *buffer,
gegl_buffer_iterate (buffer, NULL, dest_buf, rowstride, FALSE, format, 0);
return;
}
+
+ g_return_if_fail (rect);
if (rect->width == 0 ||
rect->height == 0)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]