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

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