Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Rings:1-MinimalX
ImageMagick
ImageMagick-CVE-2018-16323.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ImageMagick-CVE-2018-16323.patch of Package ImageMagick
diff --git a/coders/xbm.c b/coders/xbm.c index 34344b735e..bae47c8e59 100644 --- a/coders/xbm.c +++ b/coders/xbm.c @@ -351,7 +351,10 @@ static Image *ReadXBMImage(const ImageInfo *image_info,ExceptionInfo *exception) { c=XBMInteger(image,hex_digits); if (c < 0) - break; + { + data=(unsigned char *) RelinquishMagickMemory(data); + ThrowReaderException(CorruptImageError,"ImproperImageHeader"); + } *p++=(unsigned char) c; if ((padding == 0) || (((i+2) % bytes_per_line) != 0)) *p++=(unsigned char) (c >> 8); @@ -361,7 +364,10 @@ static Image *ReadXBMImage(const ImageInfo *image_info,ExceptionInfo *exception) { c=XBMInteger(image,hex_digits); if (c < 0) - break; + { + data=(unsigned char *) RelinquishMagickMemory(data); + ThrowReaderException(CorruptImageError,"ImproperImageHeader"); + } *p++=(unsigned char) c; } if (EOFBlob(image) != MagickFalse)
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