Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 241681 Details for
Bug 310081
CVE-2007-4988 Integer overflow in ImageMagick's DIB coder
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
backported patch from Jonathan Smith
ImageMagick-6.2.3-CVE-2007-4988.patch (text/plain), 1.52 KB, created by
Mark J. Cox
on 2007-10-29 11:29:44 UTC
(
hide
)
Description:
backported patch from Jonathan Smith
Filename:
MIME Type:
Creator:
Mark J. Cox
Created:
2007-10-29 11:29:44 UTC
Size:
1.52 KB
patch
obsolete
>diff -r b474881af7c5 coders/dib.c >--- a/coders/dib.c Fri Sep 28 02:40:55 2007 -0800 >+++ b/coders/dib.c Fri Sep 28 02:45:58 2007 -0800 >@@ -442,6 +442,14 @@ static MagickBooleanType IsDIB(const uns > % > % > */ >+ >+static inline long MagickAbsoluteValue(const long x) >+{ >+ if (x < 0) >+ return(-x); >+ return(x); >+} >+ > static Image *ReadDIBImage(const ImageInfo *image_info,ExceptionInfo *exception) > { > DIBInfo >@@ -532,7 +540,7 @@ static Image *ReadDIBImage(const ImageIn > dib_info.blue_mask=ReadBlobLSBShort(image); > } > image->matte=dib_info.bits_per_pixel == 32 ? MagickTrue : MagickFalse; >- image->columns=dib_info.width; >+ image->columns=(unsigned long) MagickAbsoluteValue(dib_info.width); > image->rows=AbsoluteValue(dib_info.height); > image->depth=8; > if ((dib_info.number_colors != 0) || (dib_info.bits_per_pixel < 16)) >@@ -569,9 +577,12 @@ static Image *ReadDIBImage(const ImageIn > /* > Read DIB raster colormap. > */ >+ if ((4*image->colors) < image->colors) >+ ThrowReaderException(CorruptImageError,"ImproperImageHeader"); > if (AllocateImageColormap(image,image->colors) == MagickFalse) > ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); >- dib_colormap=(unsigned char *) AcquireMagickMemory(4*image->colors); >+ dib_colormap=(unsigned char *) AcquireMagickMemory(4*image->colors* >+ sizeof(*dib_colormap)); > if (dib_colormap == (unsigned char *) NULL) > ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); > packet_size=4;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 310081
: 241681 |
241701
|
241711
|
278181