Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
ImageMagick.6676
ImageMagick-CVE-2017-11450.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ImageMagick-CVE-2017-11450.patch of Package ImageMagick.6676
-- a/coders/jpeg.c +++ b/coders/jpeg.c @@ -1030,6 +1030,11 @@ static Image *ReadJPEGImage(const ImageInfo *image_info, image=DestroyImageList(image); return((Image *) NULL); } + /* + Verify that file size large enough to contain a JPEG datastream. + */ + if (GetBlobSize(image) < 107) + ThrowReaderException(CorruptImageError,"InsufficientImageDataInFile"); /* Initialize JPEG parameters. */ @@ -1504,6 +1509,7 @@ ModuleExport size_t RegisterJPEGImage(void) #endif entry->magick=(IsImageFormatHandler *) IsJPEG; entry->adjoin=MagickFalse; + entry->seekable_stream=MagickTrue; entry->description=ConstantString(description); if (*version != '\0') entry->version=ConstantString(version); @@ -1520,6 +1526,7 @@ ModuleExport size_t RegisterJPEGImage(void) #endif entry->magick=(IsImageFormatHandler *) IsJPEG; entry->adjoin=MagickFalse; + entry->seekable_stream=MagickTrue; entry->description=ConstantString(description); if (*version != '\0') entry->version=ConstantString(version); @@ -1535,6 +1542,7 @@ ModuleExport size_t RegisterJPEGImage(void) entry->encoder=(EncodeImageHandler *) WriteJPEGImage; #endif entry->adjoin=MagickFalse; + entry->seekable_stream=MagickTrue; entry->description=ConstantString(description); if (*version != '\0') entry->version=ConstantString(version); @@ -1550,6 +1558,7 @@ ModuleExport size_t RegisterJPEGImage(void) entry->encoder=(EncodeImageHandler *) WriteJPEGImage; #endif entry->adjoin=MagickFalse; + entry->seekable_stream=MagickTrue; entry->description=ConstantString(description); if (*version != '\0') entry->version=ConstantString(version); @@ -1565,6 +1574,7 @@ ModuleExport size_t RegisterJPEGImage(void) entry->encoder=(EncodeImageHandler *) WriteJPEGImage; #endif entry->adjoin=MagickFalse; + entry->seekable_stream=MagickTrue; entry->description=ConstantString(description); if (*version != '\0') entry->version=ConstantString(version);
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