Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
ImageMagick.29424
ImageMagick-CVE-2017-12642.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ImageMagick-CVE-2017-12642.patch of Package ImageMagick.29424
diff --git a/coders/mpc.c b/coders/mpc.c index ed45eac320..c8e7b4b4e4 100644 --- a/coders/mpc.c +++ b/coders/mpc.c @@ -775,9 +775,17 @@ static Image *ReadMPCImage(const ImageInfo *image_info,ExceptionInfo *exception) (image->storage_class == UndefinedClass) || (image->compression == UndefinedCompression) || (image->columns == 0) || (image->rows == 0)) - ThrowReaderException(CorruptImageError,"ImproperImageHeader"); + { + if (profiles != (LinkedListInfo *) NULL) + profiles=DestroyLinkedList(profiles,RelinquishMagickMemory); + ThrowReaderException(CorruptImageError,"ImproperImageHeader"); + } if (signature != GetMagickSignature((const StringInfo *) NULL)) - ThrowReaderException(CacheError,"IncompatibleAPI"); + { + if (profiles != (LinkedListInfo *) NULL) + profiles=DestroyLinkedList(profiles,RelinquishMagickMemory); + ThrowReaderException(CacheError,"IncompatibleAPI"); + } if (image->montage != (char *) NULL) { register char @@ -801,7 +809,12 @@ static Image *ReadMPCImage(const ImageInfo *image_info,ExceptionInfo *exception) image->directory=(char *) ResizeQuantumMemory(image->directory, length+MaxTextExtent,sizeof(*image->directory)); if (image->directory == (char *) NULL) - ThrowReaderException(CorruptImageError,"UnableToReadImageData"); + { + if (profiles != (LinkedListInfo *) NULL) + profiles=DestroyLinkedList(profiles,RelinquishMagickMemory); + ThrowReaderException(CorruptImageError, + "UnableToReadImageData"); + } p=image->directory+strlen(image->directory); } c=ReadBlobByte(image);
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