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

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