diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-01-24 20:21:14 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-01-24 20:21:14 +0000 |
commit | 6f55f2197b758ef6d5b21e8f84bc3b9f9d98766a (patch) | |
tree | c7c5186148783cef2e64e362c7fc642832c62448 /print/ghostscript7/files/patch-lib:gs_setpd.ps | |
parent | Document a local vulnerability in mod_dosevasive. (diff) |
- Update gimp-print to 4.2.7
- Correct merge cups/pstoraster patches
PR: ports/76569
Submitted by: Jose M Rodriguez (freebsd) <josemi@freebsd.jazztel.es>
Diffstat (limited to 'print/ghostscript7/files/patch-lib:gs_setpd.ps')
-rw-r--r-- | print/ghostscript7/files/patch-lib:gs_setpd.ps | 89 |
1 files changed, 64 insertions, 25 deletions
diff --git a/print/ghostscript7/files/patch-lib:gs_setpd.ps b/print/ghostscript7/files/patch-lib:gs_setpd.ps index 1e0cf12559a7..1e9444732d86 100644 --- a/print/ghostscript7/files/patch-lib:gs_setpd.ps +++ b/print/ghostscript7/files/patch-lib:gs_setpd.ps @@ -1,6 +1,6 @@ ---- lib/gs_setpd.ps.orig Mon Mar 31 22:02:22 2003 -+++ lib/gs_setpd.ps Sat May 17 06:57:49 2003 -@@ -323,21 +323,42 @@ +--- lib/gs_setpd.ps.orig Sat Apr 12 16:02:38 2003 ++++ lib/gs_setpd.ps Sat Jan 22 13:15:05 2005 +@@ -324,21 +324,42 @@ } bind .dicttomark readonly def @@ -14,32 +14,17 @@ -/.inputselectionkeys [ - /MediaPosition /Orientation -] readonly def -+% M. Sweet, Easy Software Products: -+% -+% Define NOMEDIAATTRS to turn the default (but unimplementable) media -+% selection policies for setpagedevice. This is used by CUPS to -+% support the standard Adobe media attributes. -+currentdict /NOMEDIAATTRS known { -+ % Define the keys used in input attribute matching. -+ /.inputattrkeys [ -+ /PageSize /MediaColor /MediaWeight /MediaType /InsertSheet -+ % The following are documented in Adobe's supplement for v2017. -+ /LeadingEdge /MediaClass -+ ] readonly def -+ % Define other keys used in media selection. -+ /.inputselectionkeys [ -+ /MediaPosition /Orientation -+ ] readonly def - +- -% Define the keys used in output attribute matching. -/.outputattrkeys [ - /OutputType -] readonly def -+ % Define the keys used in output attribute matching. -+ /.outputattrkeys [ -+ /OutputType -+ ] readonly def -+} { ++% M. Sweet, Easy Software Products: ++% ++% Define NOMEDIAATTRS to turn off the default (but unimplementable) media ++% selection policies for setpagedevice. This is used by CUPS to support ++% the standard Adobe media attributes. ++NOMEDIAATTRS { + % Define only PageSize for input attribute matching. + /.inputattrkeys [ + /PageSize @@ -53,7 +38,61 @@ + /.outputattrkeys [ + /noOutputAttrKeys + ] readonly def ++} { ++ % Define the keys used in input attribute matching. ++ /.inputattrkeys [ ++ /PageSize /MediaColor /MediaWeight /MediaType /InsertSheet ++ % The following are documented in Adobe's supplement for v2017. ++ /LeadingEdge /MediaClass ++ ] readonly def ++ % Define other keys used in media selection. ++ /.inputselectionkeys [ ++ /MediaPosition /Orientation ++ ] readonly def ++ ++ % Define the keys used in output attribute matching. ++ /.outputattrkeys [ ++ /OutputType ++ ] readonly def +} ifelse % Define all the parameters that should always be copied to the merged % dictionary. +@@ -367,7 +388,13 @@ + /PageSize false % obsolete alias for .MediaSize + /InputAttributes false + .inputattrkeys +- { dup /PageSize eq ++ % M. Sweet, Easy Software Products: ++ % ++ % Treat LeadingEdge like PageSize so that a common Ghostscript driver ++ % doesn't need the NOMEDIAATTRS definition. ++ % ++ % { dup /PageSize eq ++ { dup dup /PageSize eq exch /LeadingEdge eq or + { pop } + { { 2 index /InputAttributes .knownget { null eq } { true } ifelse } } + ifelse +@@ -442,11 +469,22 @@ + % They are expected to consume the top 2 operands. + % NOTE: we currently treat all values other than 0, 1, or 7 (for PageSize) + % the same as 0, i.e., we signal an error. ++% ++% M. Sweet, Easy Software Products: ++% ++% Define NOMEDIAATTRS to turn off the default (but unimplementable) media ++% selection policies for setpagedevice. This is used by CUPS to support ++% the standard Adobe media attributes. + 0 { % Set errorinfo and signal a configurationerror. ++ NOMEDIAATTRS { ++ % NOMEDIAATTRS means that the default policy is 7... ++ pop 2 index exch 7 put ++ } { + pop dup 4 index exch get 2 array astore + $error /errorinfo 3 -1 roll put + cleartomark + /setpagedevice load /configurationerror signalerror ++ } ifelse + } bind + 1 { % Roll back the failed request to its previous status. + DEBUG { (Rolling back.) = pstack flush } if |