Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE
GraphicsMagick.8689
GraphicsMagick-CVE-2017-14994.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File GraphicsMagick-CVE-2017-14994.patch of Package GraphicsMagick.8689
diff -r 0683f8724200 -r b3eca3eaa264 coders/dcm.c --- a/coders/dcm.c Sun Oct 01 15:43:56 2017 -0500 +++ b/coders/dcm.c Sun Oct 01 16:10:26 2017 -0500 @@ -4852,10 +4852,21 @@ MagickFreeMemory(dcm.rescale_map); if (status == MagickPass) { - while (image->previous != (Image *) NULL) - image=image->previous; - CloseBlob(image); - return(image); + /* It is possible to have success status yet have no image */ + if (image != (Image *) NULL) + { + while (image->previous != (Image *) NULL) + image=image->previous; + CloseBlob(image); + return(image); + } + else + { + ThrowException(exception,CorruptImageError, + ImageFileDoesNotContainAnyImageData, + image_info->filename); + return (Image *) NULL; + } } else {
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