Blame SOURCES/ghostscript-cve-2018-19475.patch

ed4834
From aeea342904978c9fe17d85f4906a0f6fcce2d315 Mon Sep 17 00:00:00 2001
bd82b2
From: Chris Liddell <chris.liddell@artifex.com>
ed4834
Date: Mon, 12 Nov 2018 17:21:33 +0000
ed4834
Subject: [PATCH] Bug 700153: restore: always check available stack
bd82b2
bd82b2
Previously, we were checking there was enough stack space available when the
bd82b2
restore operation required a device change, but since we have to use
bd82b2
Postscript to reset the userparams (ick!), we need the stack check even when
bd82b2
not changing the device.
bd82b2
---
ed4834
 psi/zdevice2.c | 2 +-
ed4834
 1 file changed, 1 insertion(+), 1 deletion(-)
bd82b2
ed4834
diff --git a/psi/zdevice2.c b/psi/zdevice2.c
ed4834
index 159a0c0..e11b075 100644
ed4834
--- a/psi/zdevice2.c
ed4834
+++ b/psi/zdevice2.c
ed4834
@@ -277,7 +277,7 @@ restore_page_device(i_ctx_t *i_ctx_p, const gs_gstate * pgs_old, const gs_gstate
bd82b2
             samepagedevice = false;
bd82b2
     }
bd82b2
 
bd82b2
-    if (LockSafetyParams && !samepagedevice) {
bd82b2
+    if (LockSafetyParams) {
bd82b2
         const int required_ops = 512;
bd82b2
         const int required_es = 32;
bd82b2
 
ed4834
-- 
ed4834
2.17.2
ed4834