Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Alexander_Naumov:SLE-12:Update
ImageMagick.29424
ImageMagick-CVE-2020-27774,27766,27776.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ImageMagick-CVE-2020-27774,27766,27776.patch of Package ImageMagick.29424
Index: ImageMagick-6.8.8-1/magick/statistic.c =================================================================== --- ImageMagick-6.8.8-1.orig/magick/statistic.c 2020-12-04 10:05:55.549697174 +0100 +++ ImageMagick-6.8.8-1/magick/statistic.c 2020-12-04 10:05:55.825698932 +0100 @@ -245,6 +245,9 @@ static MagickRealType ApplyEvaluateOpera MagickRealType result; + register ssize_t + i; + result=0.0; switch (op) { @@ -314,7 +317,9 @@ static MagickRealType ApplyEvaluateOpera } case LeftShiftEvaluateOperator: { - result=(MagickRealType) ((size_t) pixel << (size_t) (value+0.5)); + result=(double) pixel; + for (i=0; i < (ssize_t) value; i++) + result*=2.0; break; } case LogEvaluateOperator: @@ -374,7 +379,9 @@ static MagickRealType ApplyEvaluateOpera } case RightShiftEvaluateOperator: { - result=(MagickRealType) ((size_t) pixel >> (size_t) (value+0.5)); + result=(MagickRealType) pixel; + for (i=0; i < (ssize_t) value; i++) + result/=2.0; break; } case SetEvaluateOperator:
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