summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2020-04-09 12:04:54 -0700
committerMichael Vrhel <michael.vrhel@artifex.com>2020-05-01 16:16:47 -0700
commit813349874d1ebdce98b50178937ef2ca00e2ea2d (patch)
treea640be8bbf4848c0405c732b3c3a370fb067a755
parentf7c69d636f713f2329a9f7c5fa94d9a5a793c2ed (diff)
downloadghostpdl-813349874d1ebdce98b50178937ef2ca00e2ea2d.tar.gz
Fix segv due to miscounted spot colors
-rw-r--r--base/gdevp14.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gdevp14.c b/base/gdevp14.c
index 9346d5b42..6eb2e2874 100644
--- a/base/gdevp14.c
+++ b/base/gdevp14.c
@@ -6174,8 +6174,8 @@ pdf14_push_color_model(gx_device *dev, gs_transparency_color_t group_color_type,
/* If we are a sep device and this is not a softmask, ensure we maintain the
spot colorants and know how to index into them */
if (pdev->sep_device && !is_mask) {
- int num_spots = group_color->num_components -
- group_color->icc_profile->num_comps;
+ int num_spots = dev->color_info.num_components -
+ dev->icc_struct->device_profile[0]->num_comps;
if (num_spots > 0) {
new_num_comps += num_spots;