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 600950 Details for
Bug 844101
CVE-2012-3437 ImageMagick: Magick_png_malloc() size argument
[?]
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]
Patch for CVE-2012-3437 from ImageMagick SVN
CVE-2012-3437-coders-png-c.patch (text/plain), 2.15 KB, created by
Kurt Seifried
on 2012-07-28 22:57:47 UTC
(
hide
)
Description:
Patch for CVE-2012-3437 from ImageMagick SVN
Filename:
MIME Type:
Creator:
Kurt Seifried
Created:
2012-07-28 22:57:47 UTC
Size:
2.15 KB
patch
obsolete
>Index: coders/png.c >=================================================================== >--- coders/png.c (revision 8733) >+++ coders/png.c (revision 8732) >@@ -1808,11 +1808,7 @@ > } > > #ifdef PNG_USER_MEM_SUPPORTED >-#if PNG_LIBPNG_VER >= 14000 >-static png_voidp Magick_png_malloc(png_structp png_ptr,png_alloc_size_t size) >-#else >-static png_voidp Magick_png_malloc(png_structp png_ptr,png_size_t size) >-#endif >+static png_voidp Magick_png_malloc(png_structp png_ptr,png_uint_32 size) > { > (void) png_ptr; > return((png_voidp) AcquireMagickMemory((size_t) size)); >@@ -7462,22 +7458,12 @@ > (char *) profile_type, (double) length); > } > >-#if PNG_LIBPNG_VER >= 14000 >- text=(png_textp) png_malloc(ping,(png_alloc_size_t) sizeof(png_text)); >-#else >- text=(png_textp) png_malloc(ping,(png_size_t) sizeof(png_text)); >-#endif >+ text=(png_textp) png_malloc(ping,(png_uint_32) sizeof(png_text)); > description_length=(png_uint_32) strlen((const char *) profile_description); > allocated_length=(png_uint_32) (length*2 + (length >> 5) + 20 > + description_length); >-#if PNG_LIBPNG_VER >= 14000 >- text[0].text=(png_charp) png_malloc(ping, >- (png_alloc_size_t) allocated_length); >- text[0].key=(png_charp) png_malloc(ping, (png_alloc_size_t) 80); >-#else >- text[0].text=(png_charp) png_malloc(ping, (png_size_t) allocated_length); >- text[0].key=(png_charp) png_malloc(ping, (png_size_t) 80); >-#endif >+ text[0].text=(png_charp) png_malloc(ping,allocated_length); >+ text[0].key=(png_charp) png_malloc(ping, (png_uint_32) 80); > text[0].key[0]='\0'; > (void) ConcatenateMagickString(text[0].key, > "Raw profile type ",MaxTextExtent); >@@ -10796,13 +10782,7 @@ > { > if (value != (const char *) NULL) > { >- >-#if PNG_LIBPNG_VER >= 14000 >- text=(png_textp) png_malloc(ping, >- (png_alloc_size_t) sizeof(png_text)); >-#else >- text=(png_textp) png_malloc(ping,(png_size_t) sizeof(png_text)); >-#endif >+ text=(png_textp) png_malloc(ping,(png_uint_32) sizeof(png_text)); > text[0].key=(char *) property; > text[0].text=(char *) value; > text[0].text_length=strlen(value);
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 844101
: 600950