]> Pileus Git - ~andy/gtk/commitdiff
Avoid a buffer overrun. (#313900, Sebastien Bacher)
authorMatthias Clasen <mclasen@redhat.com>
Fri, 19 Aug 2005 16:16:17 +0000 (16:16 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 19 Aug 2005 16:16:17 +0000 (16:16 +0000)
2005-08-19  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.
(#313900, Sebastien Bacher)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gtk/gtkhsv.c

index 489908ea9401e00d620d1f7b6815a6c0b46817a0..64fa10f42b7ea7b40eafbe24e90807a83ab37e91 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.  
+       (#313900, Sebastien Bacher)
+
        * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Return
        FALSE if the tree is empty.  (#313891, Guillaume Cottenceau)
 
index 489908ea9401e00d620d1f7b6815a6c0b46817a0..64fa10f42b7ea7b40eafbe24e90807a83ab37e91 100644 (file)
@@ -1,5 +1,8 @@
 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.  
+       (#313900, Sebastien Bacher)
+
        * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Return
        FALSE if the tree is empty.  (#313891, Guillaume Cottenceau)
 
index 489908ea9401e00d620d1f7b6815a6c0b46817a0..64fa10f42b7ea7b40eafbe24e90807a83ab37e91 100644 (file)
@@ -1,5 +1,8 @@
 2005-08-19  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.  
+       (#313900, Sebastien Bacher)
+
        * gtk/gtktreeview.c (gtk_tree_view_get_visible_range): Return
        FALSE if the tree is empty.  (#313891, Guillaume Cottenceau)
 
index e3ea34966294d9c1aa098d47daf2ab7fe92354b2..fcd5d535783601ef75d715df60761d8b624583c4 100644 (file)
@@ -1201,7 +1201,7 @@ paint_triangle (GtkHSV      *hsv,
        for (xx = x; xx < x_start; xx++)
          *p++ = c;
          
-       for (xx = x_start; xx < x_end; xx++)
+       for (; xx < x_end; xx++)
          {
            x_interp = CLAMP (xx, xl, xr);
                
@@ -1212,7 +1212,7 @@ paint_triangle (GtkHSV      *hsv,
 
        c = (rr << 16) | (gr << 8) | br;
 
-       for (xx = x_end; xx < x + width; xx++)
+       for (; xx < x + width; xx++)
          *p++ = c;
       }
     }