One more fix to prevent buffer overruns. (#314081, Hans Breuer)

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

	* gtk/gtkhsv.c (paint_triangle): One more fix to prevent buffer
	overruns.  (#314081, Hans Breuer)
This commit is contained in:
Matthias Clasen 2005-08-22 14:14:45 +00:00 committed by Matthias Clasen
parent f2fbb48a81
commit 8da86542c5
4 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-08-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkhsv.c (paint_triangle): One more fix to prevent buffer
overruns. (#314081, Hans Breuer)
2005-08-20 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c (gtk_entry_get_layout): Clarify that the

View File

@ -1,3 +1,8 @@
2005-08-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkhsv.c (paint_triangle): One more fix to prevent buffer
overruns. (#314081, Hans Breuer)
2005-08-20 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c (gtk_entry_get_layout): Clarify that the

View File

@ -1,3 +1,8 @@
2005-08-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkhsv.c (paint_triangle): One more fix to prevent buffer
overruns. (#314081, Hans Breuer)
2005-08-20 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c (gtk_entry_get_layout): Clarify that the

View File

@ -1195,6 +1195,7 @@ paint_triangle (GtkHSV *hsv,
x_start = MAX (xl - PAD, x);
x_end = MIN (xr + PAD, x + width);
x_start = MIN (x_start, x_end);
c = (rl << 16) | (gl << 8) | bl;