Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 490596 Details for
Bug 626450
<media-gfx/graphicsmagick-1.3.27: NULL pointer dereference in theWriteMAPImage in coders/map.c
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
CVE-2017-11642.patch
CVE-2017-11642.patch (text/plain), 2.00 KB, created by
Andrey Ovcharov
on 2017-08-25 23:22:42 UTC
(
hide
)
Description:
CVE-2017-11642.patch
Filename:
MIME Type:
Creator:
Andrey Ovcharov
Created:
2017-08-25 23:22:42 UTC
Size:
2.00 KB
patch
obsolete
> ># HG changeset patch ># User Bob Friesenhahn <bfriesen@GraphicsMagick.org> ># Date 1500758975 18000 ># Node ID 29550606d8b9bf74f9aea0637d11d19fe706871b ># Parent 30cd2b31f7e045de4861b102e3f8d83db579bc7a >MAP: Fix null pointer dereference or SEGV if input is not colormapped. > >diff -r 30cd2b31f7e0 -r 29550606d8b9 coders/map.c >--- a/coders/map.c Sat Jul 22 15:40:00 2017 -0500 >+++ b/coders/map.c Sat Jul 22 16:29:35 2017 -0500 >@@ -18,7 +18,7 @@ > % M M A A P % > % % > % % >-% Read/Write Image Colormaps As An Image File % >+% Read/Write Image Colormaps And Image File % > % % > % % > % Software Design % >@@ -349,16 +349,17 @@ > /* > Allocate colormap. > */ >- if (!IsPaletteImage(image,&image->exception)) >- (void) SetImageType(image,PaletteType); >+ if (SetImageType(image,PaletteType) == MagickFail) >+ ThrowMAPWriterException(ResourceLimitError,MemoryAllocationFailed,image); > packet_size=image->depth > 8 ? 2 : 1; >- pixels=MagickAllocateMemory(unsigned char *,image->columns*packet_size); >+ pixels=MagickAllocateArray(unsigned char *,image->columns,packet_size); > if (pixels == (unsigned char *) NULL) > ThrowMAPWriterException(ResourceLimitError,MemoryAllocationFailed,image); > packet_size=image->colors > 256 ? 6 : 3; >- colormap=MagickAllocateMemory(unsigned char *,packet_size*image->colors); >+ colormap=MagickAllocateArray(unsigned char *,packet_size,image->colors); > if (colormap == (unsigned char *) NULL) > ThrowMAPWriterException(ResourceLimitError,MemoryAllocationFailed,image); >+ > /* > Write colormap to file. > */ >
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 626450
: 490596