mirror of https://github.com/GNOME/gimp.git
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:
parent
064a79ed76
commit
0c6d379081
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue