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

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