Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 475454 Details for
Bug 621124
app-text/ghostscript-gpl-9.20*: Multiple vulnerabilities CVE-2016-10219, CVE-2016-10220, CVE-2017-5951, CVE-2017-7207
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ghostscript-gpl-CVE-2017-7207.patch
ghostscript-gpl-CVE-2017-7207.patch (text/plain), 1.29 KB, created by
Andrey Ovcharov
on 2017-06-07 13:30:00 UTC
(
hide
)
Description:
ghostscript-gpl-CVE-2017-7207.patch
Filename:
MIME Type:
Creator:
Andrey Ovcharov
Created:
2017-06-07 13:30:00 UTC
Size:
1.29 KB
patch
obsolete
>From 0e88bee1304993668fede72498d656a2dd33a35e Mon Sep 17 00:00:00 2001 >From: Ken Sharp <ken.sharp@artifex.com> >Date: Mon, 20 Mar 2017 09:34:11 +0000 >Subject: [PATCH] Ensure a device has raster memory, before trying to read it. > >Bug #697676 "Null pointer dereference in mem_get_bits_rectangle()" > >This is only possible by abusing/mis-using Ghostscript-specific >language extensions, so cannot happen in a general PostScript program. > >Nevertheless, Ghostscript should not crash. So this commit checks the >memory device to see if raster memory has been allocated, before trying >to read from it. > >Upstream-Status: Backport >CVE: CVE-2017-7207 > >Author: Ken Sharp <ken.sharp@artifex.com> >Signed-off-by: Catalin Enache <catalin.enache@windriver.com> >--- > base/gdevmem.c | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/base/gdevmem.c b/base/gdevmem.c >index 41108ba..183f96d 100644 >--- a/base/gdevmem.c >+++ b/base/gdevmem.c >@@ -605,6 +605,8 @@ mem_get_bits_rectangle(gx_device * dev, const gs_int_rect * prect, > GB_PACKING_CHUNKY | GB_COLORS_NATIVE | GB_ALPHA_NONE; > return_error(gs_error_rangecheck); > } >+ if (mdev->line_ptrs == 0x00) >+ return_error(gs_error_rangecheck); > if ((w <= 0) | (h <= 0)) { > if ((w | h) < 0) > return_error(gs_error_rangecheck); >-- >2.10.2 >
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 621124
:
475448
|
475450
|
475452
| 475454