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

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