Commit e20eb8b7 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Avoid a buffer overrun. (#313900, Sebastien Bacher)

2005-08-19  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.
	(#313900, Sebastien Bacher)
parent 445b61e3
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)
......
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)
......
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)
......
......@@ -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;
}
}
......
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