Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Alexander_Naumov:SLE-12:Update
ImageMagick.29424
ImageMagick-CVE-2017-18252.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ImageMagick-CVE-2017-18252.patch of Package ImageMagick.29424
Index: ImageMagick-6.8.8-1/wand/mogrify.c =================================================================== --- ImageMagick-6.8.8-1.orig/wand/mogrify.c 2013-12-01 15:47:50.000000000 +0100 +++ ImageMagick-6.8.8-1/wand/mogrify.c 2018-04-13 16:44:18.022902548 +0200 @@ -8437,7 +8437,8 @@ WandExport MagickBooleanType MogrifyImag Image *p, *q, - *swap; + *swap, + *temp; ssize_t swap_index; @@ -8470,7 +8471,14 @@ WandExport MagickBooleanType MogrifyImag if (p == q) break; swap=CloneImage(p,0,0,MagickTrue,exception); - ReplaceImageInList(&p,CloneImage(q,0,0,MagickTrue,exception)); + if (swap == (Image *) NULL) + ThrowWandFatalException(ResourceLimitFatalError, + "MemoryAllocationFailed",(*images)->filename); + temp=CloneImage(q,0,0,MagickTrue,exception); + if (temp == (Image *) NULL) + ThrowWandFatalException(ResourceLimitFatalError, + "MemoryAllocationFailed",(*images)->filename); + ReplaceImageInList(&p,temp); ReplaceImageInList(&q,swap); *images=GetFirstImageInList(q); break;
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