summaryrefslogtreecommitdiff
path: root/gtk/gtkhsv.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-08-22 14:14:45 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-08-22 14:14:45 +0000
commit8da86542c56afcf5e973996d5bff957725572cff (patch)
treee5b9fecfdb904d7821e3575cbaf1d437d22d2e5a /gtk/gtkhsv.c
parentf2fbb48a81b10bbdf4f4051a6720697ee48e4e50 (diff)
downloadgdk-pixbuf-8da86542c56afcf5e973996d5bff957725572cff.tar.gz
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)
Diffstat (limited to 'gtk/gtkhsv.c')
-rw-r--r--gtk/gtkhsv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkhsv.c b/gtk/gtkhsv.c
index fcd5d5357..2b690c0f0 100644
--- a/gtk/gtkhsv.c
+++ b/gtk/gtkhsv.c
@@ -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;