mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 01:43:24 +00:00
libgimpwidgets: Fix stack buffer overrun
3833ab2b1d
changed the type of "rgb" from
gdouble[3] to gfloat[3], but it should instead have changed the type of
"lch".
Resolves #11898.
This commit is contained in:
parent
dd700544b4
commit
b3daeb12b5
1 changed files with 2 additions and 2 deletions
|
@ -971,8 +971,8 @@ gimp_color_select_update_pos (GimpColorSelect *select)
|
||||||
{
|
{
|
||||||
GimpColorSelector *selector = GIMP_COLOR_SELECTOR (select);
|
GimpColorSelector *selector = GIMP_COLOR_SELECTOR (select);
|
||||||
GeglColor *color = gimp_color_selector_get_color (selector);
|
GeglColor *color = gimp_color_selector_get_color (selector);
|
||||||
gfloat rgb[3];
|
gdouble rgb[3];
|
||||||
gdouble lch[3];
|
gfloat lch[3];
|
||||||
gfloat hsv[3];
|
gfloat hsv[3];
|
||||||
|
|
||||||
gegl_color_get_pixel (color, babl_format_with_space ("R'G'B' double", select->format), rgb);
|
gegl_color_get_pixel (color, babl_format_with_space ("R'G'B' double", select->format), rgb);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue