Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
ImageMagick.18391
ImageMagick-CVE-2017-17887.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ImageMagick-CVE-2017-17887.patch of Package ImageMagick.18391
--- a/magick/cache.c +++ b/magick/cache.c @@ -1882,7 +1882,9 @@ static Cache GetImagePixelCache(Image *image,const MagickBooleanType clone, clone_image.cache=ClonePixelCache(cache_info); clone_info=(CacheInfo *) clone_image.cache; status=OpenPixelCache(&clone_image,IOMode,exception); - if (status != MagickFalse) + if (status == MagickFalse) + clone_info=(CacheInfo *) DestroyPixelCache(clone_info); + else { if (clone != MagickFalse) status=ClonePixelCacheRepository(clone_info,cache_info, @@ -1890,7 +1892,7 @@ static Cache GetImagePixelCache(Image *image,const MagickBooleanType clone, if (status != MagickFalse) { destroy=MagickTrue; - image->cache=clone_image.cache; + image->cache=clone_info; } } DestroySemaphoreInfo(&clone_image.semaphore);
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