Commit ba6a8de6 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

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)
parent 2acb0491
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> 2006-02-17 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered): * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
......
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> 2006-02-17 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered): * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_rows_reordered):
......
...@@ -248,7 +248,7 @@ gdk_region_union_with_rect (GdkRegion *region, ...@@ -248,7 +248,7 @@ gdk_region_union_with_rect (GdkRegion *region,
g_return_if_fail (region != NULL); g_return_if_fail (region != NULL);
g_return_if_fail (rect != NULL); g_return_if_fail (rect != NULL);
if (!rect->width || !rect->height) if (rect->width <= 0 || rect->height <= 0)
return; return;
tmp_region.rects = &tmp_region.extents; tmp_region.rects = &tmp_region.extents;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment