ghostscript-9.20-cve-2016-7978.patch 676 B

123456789101112131415161718192021222324
  1. From 6f749c0c44e7b9e09737b9f29edf29925a34f0cf Mon Sep 17 00:00:00 2001
  2. From: Chris Liddell <chris.liddell@artifex.com>
  3. Date: Wed, 5 Oct 2016 09:59:25 +0100
  4. Subject: [PATCH] Bug 697179: Reference count device icc profile
  5. when copying a device
  6. ---
  7. base/gsdevice.c | 1 +
  8. 1 file changed, 1 insertion(+)
  9. diff --git a/base/gsdevice.c b/base/gsdevice.c
  10. index 778106f..aea986a 100644
  11. --- a/base/gsdevice.c
  12. +++ b/base/gsdevice.c
  13. @@ -614,6 +614,7 @@ gx_device_init(gx_device * dev, const gx_device * proto, gs_memory_t * mem,
  14. dev->memory = mem;
  15. dev->retained = !internal;
  16. rc_init(dev, mem, (internal ? 0 : 1));
  17. + rc_increment(dev->icc_struct);
  18. }
  19. void
  20. --
  21. 2.7.4