Projects
home:rottame:vhosts-ng
ImageMagick6
ImageMagick-CVE-2017-18254.patch
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ImageMagick-CVE-2017-18254.patch of Package ImageMagick6
--- a/coders/gif.c +++ b/coders/gif.c @@ -1576,7 +1576,14 @@ static MagickBooleanType WriteGIFImage(const ImageInfo *image_info,Image *image) colormap=(unsigned char *) AcquireQuantumMemory(768UL,sizeof(*colormap)); if ((global_colormap == (unsigned char *) NULL) || (colormap == (unsigned char *) NULL)) - ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed"); + { + if (global_colormap != (unsigned char *) NULL) + global_colormap=(unsigned char *) RelinquishMagickMemory( + global_colormap); + if (colormap != (unsigned char *) NULL) + colormap=(unsigned char *) RelinquishMagickMemory(colormap); + ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed"); + } for (i=0; i < 768; i++) colormap[i]=(unsigned char) 0; /*
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
.