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

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