Blame SOURCES/ghostscript-cve-2019-6116-downstream.patch

6bfa55
diff --git a/Resource/Init/gs_dps.ps b/Resource/Init/gs_dps.ps
6bfa55
index 00c14d5..2a6f4f3 100644
6bfa55
--- a/Resource/Init/gs_dps.ps
6bfa55
+++ b/Resource/Init/gs_dps.ps
6bfa55
@@ -117,7 +117,7 @@
6bfa55
   .dicttomark readonly /localdicts exch put
6bfa55
                 % localdicts is now defined in userdict.
6bfa55
                 % Copy the definitions into systemdict.
6bfa55
-  localdicts { .forcedef } forall
6bfa55
+  localdicts { .forcedef } executeonly forall
6bfa55
                 % Set the user parameters.
6bfa55
   userparams readonly .setuserparams
6bfa55
                 % Establish the initial gstate(s).
6bfa55
diff --git a/Resource/Init/gs_fonts.ps b/Resource/Init/gs_fonts.ps
6bfa55
index 4807f81..01eca35 100644
6bfa55
--- a/Resource/Init/gs_fonts.ps
6bfa55
+++ b/Resource/Init/gs_fonts.ps
6bfa55
@@ -1136,7 +1136,7 @@ $error /SubstituteFont { } put
6bfa55
                       % Stack: fontdict
6bfa55
             } executeonly
6bfa55
            if pop % Stack: origfontname fontdirectory path
6bfa55
-         }
6bfa55
+         } executeonly
6bfa55
         if pop pop  % Stack: origfontname
6bfa55
 
6bfa55
                 % The font definitely did not load correctly.
6bfa55
diff --git a/Resource/Init/pdf_font.ps b/Resource/Init/pdf_font.ps
6bfa55
index f1d1728..46408f9 100644
6bfa55
--- a/Resource/Init/pdf_font.ps
6bfa55
+++ b/Resource/Init/pdf_font.ps
6bfa55
@@ -692,7 +692,7 @@ currentdict end readonly def
6bfa55
                 currentglobal exch dup gcheck setglobal
6bfa55
                 dup /GlyphNames2Unicode 100 dict dup 4 1 roll .forceput
6bfa55
                 3 2 roll setglobal
6bfa55
-              } if                                 % font-res font-dict encoding|null font-info g2u
6bfa55
+              } executeonly if                     % font-res font-dict encoding|null font-info g2u
6bfa55
               exch pop exch                        % font-res font-dict g2u encoding|null
6bfa55
               userdict /.lastToUnicode get         % font-res font-dict g2u Encoding|null CMap
6bfa55
               .convert_ToUnicode-into-g2u          % font-res font-dict