Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP3:Update
GraphicsMagick
GraphicsMagick-CVE-2022-1270.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File GraphicsMagick-CVE-2022-1270.patch of Package GraphicsMagick
Index: GraphicsMagick-1.3.35/coders/miff.c =================================================================== --- GraphicsMagick-1.3.35.orig/coders/miff.c +++ GraphicsMagick-1.3.35/coders/miff.c @@ -1788,9 +1788,20 @@ static Image *ReadMIFFImage(const ImageI else { length=ReadBlobMSBLong(image); + if (image->logging) + (void) LogMagickEvent(CoderEvent,GetMagickModule(), + "length = %"MAGICK_SIZE_T_F"u", + (MAGICK_SIZE_T) length); + if ((length == 0) || (length > compressed_length)) + { + (void) BZ2_bzDecompressEnd(&bzip_info); + ThrowMIFFReaderException(CorruptImageError,UnableToUncompressImage, + image); + } bzip_info.avail_in=(unsigned int) ReadBlob(image,length,bzip_info.next_in); if ((size_t) bzip_info.avail_in != length) { + (void) BZ2_bzDecompressEnd(&bzip_info); ThrowMIFFReaderException(CorruptImageError,UnexpectedEndOfFile, 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