Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
No build reason found for pool-leap-15.6:s390x
SUSE:SLE-12:Update
ImageMagick.9832
ImageMagick-CVE-2017-14997.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ImageMagick-CVE-2017-14997.patch of Package ImageMagick.9832
Index: ImageMagick-6.8.8-1/coders/pict.c =================================================================== --- ImageMagick-6.8.8-1.orig/coders/pict.c 2018-10-22 15:08:51.644187636 +0200 +++ ImageMagick-6.8.8-1/coders/pict.c 2018-10-22 15:09:39.856428970 +0200 @@ -764,6 +764,14 @@ static inline size_t MagickMax(const siz return(y); } +static inline MagickSizeType MagickMin(const MagickSizeType x, + const MagickSizeType y) +{ + if (x < y) + return(x); + return(y); +} + static MagickBooleanType ReadPixmap(Image *image,PICTPixmap *pixmap) { pixmap->version=(short) ReadBlobMSBShort(image); @@ -1343,7 +1351,7 @@ static Image *ReadPICTImage(const ImageI if (length == 0) break; (void) ReadBlobMSBLong(image); - length-=4; + length-=MagickMin(length,4); if (length == 0) break; info=(unsigned char *) AcquireQuantumMemory(length,sizeof(*info));
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