Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15:Update
ImageMagick.17344
ImageMagick-CVE-2020-27755.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ImageMagick-CVE-2020-27755.patch of Package ImageMagick.17344
Index: ImageMagick-7.0.7-34/MagickCore/image.c =================================================================== --- ImageMagick-7.0.7-34.orig/MagickCore/image.c 2020-12-08 18:20:16.288101448 +0100 +++ ImageMagick-7.0.7-34/MagickCore/image.c 2020-12-08 18:20:16.768104691 +0100 @@ -2639,8 +2639,18 @@ MagickExport MagickBooleanType SetImageE ThrowBinaryException(ImageError,"NegativeOrZeroImageSize",image->filename); image->columns=columns; image->rows=rows; - if ((image->depth == 0) || (image->depth > (8*sizeof(MagickSizeType)))) - ThrowBinaryException(ImageError,"ImageDepthNotSupported",image->filename); + if (image->depth == 0) + { + image->depth=8; + (void) ThrowMagickException(exception,GetMagickModule(),ImageError, + "ImageDepthNotSupported","`%s'",image->filename); + } + if (image->depth > (8*sizeof(MagickSizeType))) + { + image->depth=8*sizeof(MagickSizeType); + (void) ThrowMagickException(exception,GetMagickModule(),ImageError, + "ImageDepthNotSupported","`%s'",image->filename); + } return(SyncImagePixelCache(image,exception)); }
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