added some more g_return_if_fail() to avoid NULL pointer dereferencing.

2003-06-11  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpdrawable.c (gimp_drawable_mask_bounds): added some
	more g_return_if_fail() to avoid NULL pointer dereferencing.
This commit is contained in:
Michael Natterer 2003-06-11 13:50:04 +00:00 committed by Michael Natterer
parent 064a79ed76
commit 0c6d379081
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-06-11 Michael Natterer <mitch@gimp.org>
* app/core/gimpdrawable.c (gimp_drawable_mask_bounds): added some
more g_return_if_fail() to avoid NULL pointer dereferencing.
2003-06-11 Sven Neumann <sven@gimp.org>
* plug-ins/common/pnm.c (pnm_load_raw): improved handling of

View File

@ -800,6 +800,10 @@ gimp_drawable_mask_bounds (GimpDrawable *drawable,
GimpImage *gimage;
g_return_val_if_fail (GIMP_IS_DRAWABLE (drawable), FALSE);
g_return_val_if_fail (x1 != NULL, FALSE);
g_return_val_if_fail (y1 != NULL, FALSE);
g_return_val_if_fail (x2 != NULL, FALSE);
g_return_val_if_fail (y2 != NULL, FALSE);
item = GIMP_ITEM (drawable);
gimage = gimp_item_get_image (item);