Merge branch 'fix-pixbuf-out-of-bounds' into 'gtk-2-24'

Resolve GIMP segfault from accessing memory past end of pixbuf

See merge request GNOME/gtk!1813
This commit is contained in:
Matthias Clasen 2020-05-01 22:20:10 +00:00
commit fc1bd0cf2c

View file

@ -603,7 +603,7 @@ compute_hint (GdkPixbuf *pixbuf,
if (r != *(p++) ||
g != *(p++) ||
b != *(p++) ||
(n_channels != 4 && a != *(p++)))
(n_channels == 4 && a != *(p++)))
{
hints &= ~THEME_CONSTANT_ROWS;
if (!(hints & THEME_MISSING))