Search
j0ke.net Open Build Service
>
Projects
>
multimedia
:
EL6
>
gdk-pixbuf
> gdk-pixbuf-0.22.0-xpm-ncol-overflow.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File gdk-pixbuf-0.22.0-xpm-ncol-overflow.patch of Package gdk-pixbuf
--- gdk-pixbuf-0.22.0/gdk-pixbuf/io-xpm.c.xpm-ncol-overflow 2005-10-19 10:51:26.000000000 -0400 +++ gdk-pixbuf-0.22.0/gdk-pixbuf/io-xpm.c 2005-10-19 10:52:16.000000000 -0400 @@ -356,7 +356,9 @@ g_warning ("XPM has invalid number of chars per pixel."); return NULL; } - if (n_col <= 0 || n_col >= G_MAXINT / (cpp + 1)) { + if (n_col <= 0 || + n_col >= G_MAXINT / (cpp + 1) || + n_col >= G_MAXINT / sizeof (_XPMColor)) { g_warning ("XPM file has invalid number of colors"); return NULL; }