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-2016-7532.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ImageMagick-CVE-2016-7532.patch of Package ImageMagick.29424
--- a/coders/psd.c +++ b/coders/psd.c @@ -2605,18 +2605,23 @@ static void RemoveResolutionFromResourceBlock(StringInfo *bim_profile) register unsigned char *q; + ssize_t + cnt; + q=(unsigned char *) p; if (LocaleNCompare((const char *) p,"8BIM",4) != 0) - break; + return; p=PushLongPixel(MSBEndian,p,&long_sans); p=PushShortPixel(MSBEndian,p,&id); p=PushShortPixel(MSBEndian,p,&short_sans); p=PushLongPixel(MSBEndian,p,&count); - if ((id == 0x000003ed) && (PSDQuantum(count) < (ssize_t) (length-12))) + cnt=PSDQuantum(count); + if (cnt < 0) + return; + if ((id == 0x000003ed) && (cnt < (ssize_t) (length-12))) { - (void) CopyMagickMemory(q,q+PSDQuantum(count)+12,length- - (PSDQuantum(count)+12)-(q-datum)); - SetStringInfoLength(bim_profile,length-(PSDQuantum(count)+12)); + (void) CopyMagickMemory(q,q+cnt+12,length-(cnt+12)-(q-datum)); + SetStringInfoLength(bim_profile,length-(cnt+12)); break; } p+=count;
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