f1e96c
diff -up ghostscript-9.07/Resource/Init/gs_dps.ps.cve-2019-6116-downstream ghostscript-9.07/Resource/Init/gs_dps.ps
f1e96c
--- ghostscript-9.07/Resource/Init/gs_dps.ps.cve-2019-6116-downstream	2019-02-27 16:40:45.235290444 +0100
f1e96c
+++ ghostscript-9.07/Resource/Init/gs_dps.ps	2019-02-27 16:41:27.054739624 +0100
f1e96c
@@ -118,7 +118,7 @@
f1e96c
   .dicttomark readonly /localdicts exch put
f1e96c
                 % localdicts is now defined in userdict.
f1e96c
                 % Copy the definitions into systemdict.
f1e96c
-  localdicts { .forcedef } forall
f1e96c
+  localdicts { .forcedef } executeonly forall
f1e96c
                 % Set the user parameters.
f1e96c
   userparams readonly .setuserparams
f1e96c
                 % Establish the initial gstate(s).
f1e96c
diff -up ghostscript-9.07/Resource/Init/gs_fonts.ps.cve-2019-6116-downstream ghostscript-9.07/Resource/Init/gs_fonts.ps
f1e96c
--- ghostscript-9.07/Resource/Init/gs_fonts.ps.cve-2019-6116-downstream	2019-02-27 16:43:10.993370606 +0100
f1e96c
+++ ghostscript-9.07/Resource/Init/gs_fonts.ps	2019-02-27 16:44:44.174143288 +0100
f1e96c
@@ -1110,7 +1110,7 @@ $error /SubstituteFont { } put
f1e96c
                       % Stack: fontdict
f1e96c
             } executeonly
f1e96c
            if pop % Stack: origfontname fontdirectory path
f1e96c
-         }
f1e96c
+         } executeonly
f1e96c
         if pop pop  % Stack: origfontname
f1e96c
 
f1e96c
                 % The font definitely did not load correctly.
f1e96c
diff -up ghostscript-9.07/Resource/Init/pdf_font.ps.cve-2019-6116-downstream ghostscript-9.07/Resource/Init/pdf_font.ps
f1e96c
--- ghostscript-9.07/Resource/Init/pdf_font.ps.cve-2019-6116-downstream	2019-02-27 16:45:45.838331086 +0100
f1e96c
+++ ghostscript-9.07/Resource/Init/pdf_font.ps	2019-02-27 16:47:02.411322516 +0100
f1e96c
@@ -614,7 +614,7 @@ currentdict end readonly def
f1e96c
             currentglobal 2 index dup gcheck setglobal
f1e96c
             /FontInfo 5 dict dup 5 1 roll .forceput
f1e96c
             setglobal
f1e96c
-          } if
f1e96c
+          } executeonly if
f1e96c
           dup /GlyphNames2Unicode .knownget not {
f1e96c
             //true			    % No existing G2U, make one
f1e96c
           } {
f1e96c
@@ -628,7 +628,7 @@ currentdict end readonly def
f1e96c
             currentglobal exch dup gcheck setglobal
f1e96c
             dup /GlyphNames2Unicode 100 dict dup 4 1 roll .forceput
f1e96c
             3 2 roll setglobal
f1e96c
-          } if                                 % font-res font-dict encoding|null font-info g2u
f1e96c
+          } executeonly if                     % font-res font-dict encoding|null font-info g2u
f1e96c
           exch pop exch                        % font-res font-dict g2u encoding|null
f1e96c
           userdict /.lastToUnicode get         % font-res font-dict g2u Encoding|null CMap
f1e96c
           .convert_ToUnicode-into-g2u          % font-res font-dict