summaryrefslogtreecommitdiff
path: root/psi/int.mak
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2018-12-05 12:22:13 +0000
committerChris Liddell <chris.liddell@artifex.com>2019-01-23 13:30:13 +0000
commit13b0a36f8181db66a91bcc8cea139998b53a8996 (patch)
tree5f5290657f9e3461f20a89053720e9a2688a78c8 /psi/int.mak
parentc47512e5e638d903d69925f7ebab4de2aa3f481f (diff)
downloadghostpdl-13b0a36f8181db66a91bcc8cea139998b53a8996.tar.gz
Sanitize op stack for error conditions
We save the stacks to an array and store the array for the error handler to access. For SAFER, we traverse the array, and deep copy any op arrays (procedures). As we make these copies, we check for operators that do *not* exist in systemdict, when we find one, we replace the operator with a name object (of the form "/--opname--").
Diffstat (limited to 'psi/int.mak')
-rw-r--r--psi/int.mak3
1 files changed, 2 insertions, 1 deletions
diff --git a/psi/int.mak b/psi/int.mak
index 81bc59d4b..5dfb66ca7 100644
--- a/psi/int.mak
+++ b/psi/int.mak
@@ -203,7 +203,8 @@ $(PSOBJ)iparam.$(OBJ) : $(PSSRC)iparam.c $(GH)\
$(PSOBJ)istack.$(OBJ) : $(PSSRC)istack.c $(GH) $(memory__h)\
$(ierrors_h) $(gsstruct_h) $(gsutil_h)\
$(ialloc_h) $(istack_h) $(istkparm_h) $(istruct_h) $(iutil_h) $(ivmspace_h)\
- $(store_h) $(INT_MAK) $(MAKEDIRS)
+ $(store_h) $(icstate_h) $(iname_h) $(dstack_h) $(idict_h) \
+ $(INT_MAK) $(MAKEDIRS)
$(PSCC) $(PSO_)istack.$(OBJ) $(C_) $(PSSRC)istack.c
$(PSOBJ)iutil.$(OBJ) : $(PSSRC)iutil.c $(GH) $(math__h) $(memory__h) $(string__h)\