Projects
home:rottame:vhosts-ng
ImageMagick6
ImageMagick-CVE-2014-9844.patch
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ImageMagick-CVE-2014-9844.patch of Package ImageMagick6
--- a/coders/rle.c +++ b/coders/rle.c @@ -422,6 +422,9 @@ static Image *ReadRLEImage(const ImageInfo *image_info,ExceptionInfo *exception) } while (((opcode & 0x3f) != EOFOp) && (opcode != EOF)); if (number_colormaps != 0) { + IndexPacket + index; + MagickStatusType mask; @@ -433,7 +436,8 @@ static Image *ReadRLEImage(const ImageInfo *image_info,ExceptionInfo *exception) if (number_colormaps == 1) for (i=0; i < (ssize_t) number_pixels; i++) { - *p=colormap[*p & mask]; + index=ConstrainColormapIndex(image,*p & mask); + *p=colormap[index]; p++; } else @@ -441,7 +445,8 @@ static Image *ReadRLEImage(const ImageInfo *image_info,ExceptionInfo *exception) for (i=0; i < (ssize_t) number_pixels; i++) for (x=0; x < (ssize_t) number_planes; x++) { - *p=colormap[x*map_length+(*p & mask)]; + index=ConstrainColormapIndex(image,x*map_length+(*p & mask)); + *p=colormap[index]; p++; } }
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.