Merged from trunk:

2007-11-19  Tor Lillqvist  <tml@novell.com>

	Merged from trunk:

	* libgimpwidgets/gimpcolorscale.c
	(gimp_color_scale_render_stipple): Don't write past end of
	buffer. (#399484)


svn path=/branches/gimp-2-4/; revision=24194
This commit is contained in:
Tor Lillqvist 2007-11-18 22:32:37 +00:00 committed by Tor Lillqvist
parent 12a90e6c52
commit c3b845c3b9
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2007-11-19 Tor Lillqvist <tml@novell.com>
Merged from trunk:
* libgimpwidgets/gimpcolorscale.c
(gimp_color_scale_render_stipple): Don't write past end of
buffer. (#399484)
2007-11-16 Sven Neumann <sven@gimp.org>
Merged from trunk:

View File

@ -754,7 +754,7 @@ gimp_color_scale_render_stipple (GimpColorScale *scale)
{
guchar *d = buf + 3 * (y % 2);
for (x = 0; x < scale->width; x += 2, d += 6)
for (x = 0; x < scale->width - (y % 2); x += 2, d += 6)
{
d[0] = insensitive[0];
d[1] = insensitive[1];