File CVE-2016-7978.patch of Package ghostscript.7320
From d5ad1e0298e1c193087c824eb4f79628b182e28b Mon Sep 17 00:00:00 2001
From: Chris Liddell <chris.liddell@artifex.com>
Date: Wed, 5 Oct 2016 09:59:25 +0100
Subject: [PATCH] Bug 697179: Reference count device icc profile
when copying a device
CVE-2016-7978
---
base/gsdevice.c | 1 +
1 file changed, 1 insertion(+)
--- a/base/gsdevice.c
+++ a/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
--