summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/ghostscript/ghostscript/CVE-2016-7978.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/ghostscript/ghostscript/CVE-2016-7978.patch')
-rw-r--r--meta/recipes-extended/ghostscript/ghostscript/CVE-2016-7978.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-extended/ghostscript/ghostscript/CVE-2016-7978.patch b/meta/recipes-extended/ghostscript/ghostscript/CVE-2016-7978.patch
new file mode 100644
index 0000000000..668f205968
--- /dev/null
+++ b/meta/recipes-extended/ghostscript/ghostscript/CVE-2016-7978.patch
@@ -0,0 +1,30 @@
1From 6f749c0c44e7b9e09737b9f29edf29925a34f0cf Mon Sep 17 00:00:00 2001
2From: Chris Liddell <chris.liddell@artifex.com>
3Date: Wed, 5 Oct 2016 09:59:25 +0100
4Subject: [PATCH] Bug 697179: Reference count device icc profile
5
6when copying a device
7
8Upstream-Status: Backport
9CVE: CVE-2016-7978
10
11Signed-off-by: Catalin Enache <catalin.enache@windriver.com>
12---
13 base/gsdevice.c | 1 +
14 1 file changed, 1 insertion(+)
15
16diff --git a/base/gsdevice.c b/base/gsdevice.c
17index 778106f..aea986a 100644
18--- a/base/gsdevice.c
19+++ b/base/gsdevice.c
20@@ -614,6 +614,7 @@ gx_device_init(gx_device * dev, const gx_device * proto, gs_memory_t * mem,
21 dev->memory = mem;
22 dev->retained = !internal;
23 rc_init(dev, mem, (internal ? 0 : 1));
24+ rc_increment(dev->icc_struct);
25 }
26
27 void
28--
292.10.2
30