2e708fde52
Ghostscript security update that fixes (CVE-2013-5653 is already fixed in the 9.20 sources) CVE-2016-7976 CVE-2016-7977 CVE-2016-7978 CVE-2016-7979 (all bsc#1001951) and CVE-2016-8602 (bsc#1004237) OBS-URL: https://build.opensuse.org/request/show/435738 OBS-URL: https://build.opensuse.org/package/show/Printing/ghostscript?expand=0&rev=72
23 lines
765 B
Diff
23 lines
765 B
Diff
From: Chris Liddell <chris.liddell@artifex.com>
|
|
Date: Wed, 5 Oct 2016 08:59:25 +0000 (+0100)
|
|
Subject: Bug 697179: Reference count device icc profile
|
|
X-Git-Url: http://git.ghostscript.com/?p=user%2Fchrisl%2Fghostpdl.git;a=commitdiff_plain;h=d5ad1e0298e1c193087c824eb4f79628b182e28b;hp=71ac87493b1e445d6c07554d4246cf7d4f44875c
|
|
|
|
Bug 697179: Reference count device icc profile
|
|
|
|
when copying a device
|
|
---
|
|
|
|
diff --git a/base/gsdevice.c b/base/gsdevice.c
|
|
index 778106f..aea986a 100644
|
|
--- a/base/gsdevice.c
|
|
+++ b/base/gsdevice.c
|
|
@@ -614,6 +614,7 @@ gx_device_init(gx_device * dev, const gx_device * proto, gs_memory_t * mem,
|
|
dev->memory = mem;
|
|
dev->retained = !internal;
|
|
rc_init(dev, mem, (internal ? 0 : 1));
|
|
+ rc_increment(dev->icc_struct);
|
|
}
|
|
|
|
void
|