Be robust and reject rectangles with negative width or height. (#331467,

2006-02-17  Matthias Clasen  <mclasen@redhat.com>

        * gdk/gdkregion-generic.c (gdk_region_union_with_rect):
        Be robust and reject rectangles with negative width or
        height.  (#331467, Benjamin Berg)
This commit is contained in:
Matthias Clasen 2006-02-17 15:41:27 +00:00 committed by Matthias Clasen
parent 2acb0491fb
commit ba6a8de664
3 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2006-02-17 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkregion-generic.c (gdk_region_union_with_rect):
Be robust and reject rectangles with negative width or
height. (#331467, Benjamin Berg)
2006-02-17 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):

View File

@ -1,3 +1,10 @@
2006-02-17 Matthias Clasen <mclasen@redhat.com>
* gdk/gdkregion-generic.c (gdk_region_union_with_rect):
Be robust and reject rectangles with negative width or
height. (#331467, Benjamin Berg)
2006-02-17 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):

View File

@ -248,7 +248,7 @@ gdk_region_union_with_rect (GdkRegion *region,
g_return_if_fail (region != NULL);
g_return_if_fail (rect != NULL);
if (!rect->width || !rect->height)
if (rect->width <= 0 || rect->height <= 0)
return;
tmp_region.rects = &tmp_region.extents;