Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.4:ARM
ImageMagick.17846
ImageMagick-CVE-2020-27762.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ImageMagick-CVE-2020-27762.patch of Package ImageMagick.17846
diff --git a/coders/hdr.c b/coders/hdr.c index 6989242194..d09f652ba8 100644 --- a/coders/hdr.c +++ b/coders/hdr.c @@ -785,9 +785,13 @@ static MagickBooleanType WriteHDRImage(const ImageInfo *image_info,Image *image, exponent; gamma=frexp(gamma,&exponent)*256.0/gamma; - pixel[0]=(unsigned char) (gamma*QuantumScale*GetPixelRed(image,p)); - pixel[1]=(unsigned char) (gamma*QuantumScale*GetPixelGreen(image,p)); - pixel[2]=(unsigned char) (gamma*QuantumScale*GetPixelBlue(image,p)); + if (GetPixelRed(image,p) > 0) + pixel[0]=(unsigned char) (gamma*QuantumScale*GetPixelRed(image,p)); + if (GetPixelGreen(image,p) > 0) + pixel[1]=(unsigned char) (gamma*QuantumScale* + GetPixelGreen(image,p)); + if (GetPixelBlue(image,p) > 0) + pixel[2]=(unsigned char) (gamma*QuantumScale*GetPixelBlue(image,p)); pixel[3]=(unsigned char) (exponent+128); } if ((image->columns >= 8) && (image->columns <= 0x7ffff))
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