Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
ImageMagick.22732
ImageMagick-CVE-2019-13303.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ImageMagick-CVE-2019-13303.patch of Package ImageMagick.22732
diff --git a/MagickCore/composite.c b/MagickCore/composite.c index 78d6dff921..99e91d1470 100644 --- a/MagickCore/composite.c +++ b/MagickCore/composite.c @@ -654,18 +654,19 @@ MagickExport MagickBooleanType CompositeImage(Image *image, q+=GetPixelChannels(image); continue; } - for (i=0; i < (ssize_t) GetPixelChannels(image); i++) + for (i=0; i < (ssize_t) GetPixelChannels(source_image); i++) { - PixelChannel channel = GetPixelChannelChannel(image,i); - PixelTrait traits = GetPixelChannelTraits(image,channel); - PixelTrait source_traits=GetPixelChannelTraits(source_image, + PixelChannel channel = GetPixelChannelChannel(source_image,i); + PixelTrait source_traits = GetPixelChannelTraits(source_image, channel); - if (traits == UndefinedPixelTrait) + PixelTrait traits = GetPixelChannelTraits(image,channel); + if (source_traits == UndefinedPixelTrait) continue; - if (source_traits != UndefinedPixelTrait) + if (traits != UndefinedPixelTrait) SetPixelChannel(image,channel,p[i],q); - else if (channel == AlphaPixelChannel) - SetPixelChannel(image,channel,OpaqueAlpha,q); + else + if (channel == AlphaPixelChannel) + SetPixelChannel(image,channel,OpaqueAlpha,q); } p+=GetPixelChannels(source_image); q+=GetPixelChannels(image);
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