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

bd82b2
From: Chris Liddell <chris.liddell@artifex.com>
bd82b2
Date: Mon, 12 Nov 2018 17:21:33 +0000 (+0000)
bd82b2
Subject: Bug 700153: restore: always check available stack
bd82b2
bd82b2
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
bd82b2
https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=3005fcb9bb160af199e761e03bc70a9f249a987e
bd82b2
---
bd82b2
bd82b2
diff -up ghostscript-9.07/psi/zdevice2.c.cve-2018-19475 ghostscript-9.07/psi/zdevice2.c
bd82b2
--- ghostscript-9.07/psi/zdevice2.c.cve-2018-19475	2019-01-14 14:28:02.359841826 +0100
bd82b2
+++ ghostscript-9.07/psi/zdevice2.c	2019-01-14 14:29:29.939816553 +0100
bd82b2
@@ -276,7 +276,7 @@ restore_page_device(i_ctx_t *i_ctx_p, co
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