Blame SOURCES/ghostscript-fix-infinite-for-loop.patch

ea5d11
From 26b11a3fe34fc3c4e81e17c4fc82a674aa238d97 Mon Sep 17 00:00:00 2001
ea5d11
From: Michael Vrhel <michael.vrhel@artifex.com>
ea5d11
Date: Mon, 16 Dec 2013 08:32:12 -0800
ea5d11
Subject: [PATCH] Fix for goof up in loop index variable.
ea5d11
ea5d11
Fixes bug 694811 and 694848.   Thanks ken for finding this.
ea5d11
---
ea5d11
 base/gdevp14.c | 2 +-
ea5d11
 1 file changed, 1 insertion(+), 1 deletion(-)
ea5d11
ea5d11
diff --git a/base/gdevp14.c b/base/gdevp14.c
ea5d11
index ef2a50f..bfbf694 100644
ea5d11
--- a/base/gdevp14.c
ea5d11
+++ b/base/gdevp14.c
ea5d11
@@ -2247,7 +2247,7 @@ pdf14_copy_alpha_color(gx_device * dev, const byte * data, int data_x,
ea5d11
                     if (overprint) {
ea5d11
                         if (blendspot) {
ea5d11
                             /* Overprint simulation of spot colorants */
ea5d11
-                            for (k = 0; k < num_comp; ++i) {
ea5d11
+                            for (k = 0; k < num_comp; ++k) {
ea5d11
                                 int temp = 
ea5d11
                                     (255 - dst_ptr[k * planestride]) * dst[k];
ea5d11
                                 temp = temp >> 8;
ea5d11
-- 
ea5d11
2.9.3
ea5d11