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