Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Rings:1-MinimalX
ImageMagick
ImageMagick-CVE-2014-9822.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ImageMagick-CVE-2014-9822.patch of Package ImageMagick
--- a/magick/quantum.c +++ b/magick/quantum.c @@ -645,8 +645,9 @@ MagickExport void SetQuantumAlphaType(QuantumInfo *quantum_info, MagickExport MagickBooleanType SetQuantumDepth(const Image *image, QuantumInfo *quantum_info,const size_t depth) { - MagickBooleanType - status; + size_t + extent, + quantum; /* Allocate the quantum pixel buffer. @@ -670,9 +671,11 @@ MagickExport MagickBooleanType SetQuantumDepth(const Image *image, } if (quantum_info->pixels != (unsigned char **) NULL) DestroyQuantumPixels(quantum_info); - status=AcquireQuantumPixels(quantum_info,(6+quantum_info->pad)*image->columns* - ((quantum_info->depth+7)/8)); /* allow for CMYKA + RLE byte + pad */ - return(status); + quantum=(quantum_info->pad+6)*(quantum_info->depth+7)/8; + extent=image->columns*quantum; + if (quantum != (extent/image->columns)) + return(MagickFalse); + return(AcquireQuantumPixels(quantum_info,extent)); } /*
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