Blame SOURCES/ghostscript-cve-2019-3838.patch

3cc549
From ed9fcd95bb01f0768bf273b2526732e381202319 Mon Sep 17 00:00:00 2001
3cc549
From: Chris Liddell <chris.liddell@artifex.com>
3cc549
Date: Wed, 20 Feb 2019 09:54:28 +0000
3cc549
Subject: [PATCH 1/2] Bug 700576: Make a transient proc executeonly (in
3cc549
 DefineResource).
3cc549
3cc549
This prevents access to .forceput
3cc549
3cc549
Solution originally suggested by cbuissar@redhat.com.
3cc549
---
3cc549
 Resource/Init/gs_res.ps | 2 +-
3cc549
 1 file changed, 1 insertion(+), 1 deletion(-)
3cc549
3cc549
diff --git a/Resource/Init/gs_res.ps b/Resource/Init/gs_res.ps
3cc549
index d9b3459..b646329 100644
3cc549
--- a/Resource/Init/gs_res.ps
3cc549
+++ b/Resource/Init/gs_res.ps
3cc549
@@ -425,7 +425,7 @@ status {
3cc549
                         % so we have to use .forcedef here.
3cc549
                   /.Instances 1 index .forcedef	% Category dict is read-only
3cc549
                 } executeonly if
3cc549
-              }
3cc549
+              } executeonly
3cc549
               { .LocalInstances dup //.emptydict eq
3cc549
                  { pop 3 dict localinstancedict Category 2 index put
3cc549
                  }
3cc549
-- 
3cc549
2.20.1
3cc549
3cc549
3cc549
From a82601e8f95a2f2147f3b3b9e44ec2b8f3a6be8b Mon Sep 17 00:00:00 2001
3cc549
From: Chris Liddell <chris.liddell@artifex.com>
3cc549
Date: Fri, 22 Feb 2019 12:28:23 +0000
3cc549
Subject: [PATCH 2/2] Bug 700576(redux): an extra transient proc needs
3cc549
 executeonly'ed.
3cc549
3cc549
---
3cc549
 Resource/Init/gs_res.ps | 2 +-
3cc549
 1 file changed, 1 insertion(+), 1 deletion(-)
3cc549
3cc549
diff --git a/Resource/Init/gs_res.ps b/Resource/Init/gs_res.ps
3cc549
index b646329..8c1f29f 100644
3cc549
--- a/Resource/Init/gs_res.ps
3cc549
+++ b/Resource/Init/gs_res.ps
3cc549
@@ -437,7 +437,7 @@ status {
3cc549
                         % Now make the resource value read-only.
3cc549
              0 2 copy get { readonly } .internalstopped pop
3cc549
              dup 4 1 roll put exch pop exch pop
3cc549
-           }
3cc549
+           } executeonly
3cc549
            { /defineresource cvx /typecheck signaloperror
3cc549
            }
3cc549
         ifelse
3cc549
-- 
3cc549
2.20.1
3cc549