Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Step:15-SP4
ImageMagick.22732
ImageMagick-CVE-2020-27752.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ImageMagick-CVE-2020-27752.patch of Package ImageMagick.22732
Index: ImageMagick-7.0.7-34/coders/png.c =================================================================== --- ImageMagick-7.0.7-34.orig/coders/png.c 2020-12-08 17:41:44.440481747 +0100 +++ ImageMagick-7.0.7-34/coders/png.c 2020-12-08 17:41:44.452481828 +0100 @@ -11361,11 +11361,13 @@ static MagickBooleanType WriteOnePNGImag (void) LogMagickEvent(CoderEvent,GetMagickModule(), " Allocating %.20g bytes of memory for pixels",(double) rowbytes); } - pixel_info=AcquireVirtualMemory(rowbytes+256,sizeof(*ping_pixels)); + pixel_info=AcquireVirtualMemory(rowbytes,GetPixelChannels(image)* + sizeof(*ping_pixels)); if (pixel_info == (MemoryInfo *) NULL) png_error(ping,"Allocation of memory for pixels failed"); ping_pixels=(unsigned char *) GetVirtualMemoryBlob(pixel_info); - (void) memset(ping_pixels,0,(rowbytes+256)*sizeof(*ping_pixels)); + (void) memset(ping_pixels,0,rowbytes*GetPixelChannels(image)* + sizeof(*ping_pixels)); /* Initialize image scanlines. */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor