ghostscript:ver. bump
This commit is contained in:
@@ -0,0 +1,66 @@
|
|||||||
|
From 485904772c5f0aa1140032746e5a0abfc40f4cef Mon Sep 17 00:00:00 2001
|
||||||
|
From: Chris Liddell <chris.liddell@artifex.com>
|
||||||
|
Date: Tue, 5 Nov 2019 09:45:27 +0000
|
||||||
|
Subject: [PATCH] Bug 701841: remove .forceput from /.charkeys
|
||||||
|
|
||||||
|
When loading Type 1 or Truetype fonts from disk, we attempt to extend the glyph
|
||||||
|
name table to include all identifiable glyph names from the Adobe Glyph List.
|
||||||
|
|
||||||
|
In the case of Type 1 fonts, the font itself (almost always) marks the
|
||||||
|
CharStrings dictionary as read-only, hence we have to use .forceput for that
|
||||||
|
case.
|
||||||
|
|
||||||
|
But for Truetype fonts, the CharStrings dictionary is created internally and is
|
||||||
|
not read-only until *after* we have fully populated it (including the extended
|
||||||
|
glyph names from the AGL), hence there is no need for .forceput, and no need to
|
||||||
|
carry the security risk of using it.
|
||||||
|
|
||||||
|
Replace with regular put.
|
||||||
|
---
|
||||||
|
Resource/Init/gs_ttf.ps | 8 ++++----
|
||||||
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/Resource/Init/gs_ttf.ps b/Resource/Init/gs_ttf.ps
|
||||||
|
index 74043d1..6be8fe9 100644
|
||||||
|
--- a/Resource/Init/gs_ttf.ps
|
||||||
|
+++ b/Resource/Init/gs_ttf.ps
|
||||||
|
@@ -1304,7 +1304,7 @@ currentdict /.pickcmap_with_no_xlatmap .undef
|
||||||
|
TTFDEBUG { (\n1 setting alias: ) print dup ==only
|
||||||
|
( to be the same as ) print 2 index //== exec } if
|
||||||
|
|
||||||
|
- 7 index 2 index 3 -1 roll exch .forceput
|
||||||
|
+ 7 index 2 index 3 -1 roll exch put
|
||||||
|
} forall
|
||||||
|
pop pop pop
|
||||||
|
}
|
||||||
|
@@ -1322,7 +1322,7 @@ currentdict /.pickcmap_with_no_xlatmap .undef
|
||||||
|
exch pop
|
||||||
|
TTFDEBUG { (\n2 setting alias: ) print 1 index ==only
|
||||||
|
( to use glyph index: ) print dup //== exec } if
|
||||||
|
- 5 index 3 1 roll .forceput
|
||||||
|
+ 5 index 3 1 roll put
|
||||||
|
//false
|
||||||
|
}
|
||||||
|
{
|
||||||
|
@@ -1339,7 +1339,7 @@ currentdict /.pickcmap_with_no_xlatmap .undef
|
||||||
|
{ % CharStrings(dict) isunicode(boolean) cmap(dict) RAGL(dict) gname(name) codep(integer) gindex(integer)
|
||||||
|
TTFDEBUG { (\3 nsetting alias: ) print 1 index ==only
|
||||||
|
( to be index: ) print dup //== exec } if
|
||||||
|
- exch pop 5 index 3 1 roll .forceput
|
||||||
|
+ exch pop 5 index 3 1 roll put
|
||||||
|
}
|
||||||
|
{
|
||||||
|
pop pop
|
||||||
|
@@ -1369,7 +1369,7 @@ currentdict /.pickcmap_with_no_xlatmap .undef
|
||||||
|
} ifelse
|
||||||
|
]
|
||||||
|
TTFDEBUG { (Encoding: ) print dup === flush } if
|
||||||
|
-} .bind executeonly odef % hides .forceput
|
||||||
|
+} .bind odef
|
||||||
|
|
||||||
|
% ---------------- CIDFontType 2 font loading ---------------- %
|
||||||
|
|
||||||
|
--
|
||||||
|
2.9.1
|
||||||
|
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
<IsA>library</IsA>
|
<IsA>library</IsA>
|
||||||
<Summary>A PostScript interpreter and renderer</Summary>
|
<Summary>A PostScript interpreter and renderer</Summary>
|
||||||
<Description>ghostscript is a set of software that provides a PostScript interpreter, a set of C procedures and an interpreter for PDF files. ghostscript is normally used to display PostScript files and to print PostScript files to non-PostScript printers.</Description>
|
<Description>ghostscript is a set of software that provides a PostScript interpreter, a set of C procedures and an interpreter for PDF files. ghostscript is normally used to display PostScript files and to print PostScript files to non-PostScript printers.</Description>
|
||||||
<Archive sha1sum="f926d2cfb418a7c5d92dce0a9843fa01ee62fe2c" type="tarxz">https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs927/ghostscript-9.27.tar.xz</Archive>
|
<Archive sha1sum="3be5f36300e3031e68a28cd898b3eebc9151660b" type="tarxz">https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs950/ghostscript-9.50.tar.xz</Archive>
|
||||||
<BuildDependencies>
|
<BuildDependencies>
|
||||||
<Dependency>cups-devel</Dependency>
|
<Dependency>cups-devel</Dependency>
|
||||||
<Dependency>tiff-devel</Dependency>
|
<Dependency>tiff-devel</Dependency>
|
||||||
@@ -36,17 +36,7 @@
|
|||||||
</BuildDependencies>
|
</BuildDependencies>
|
||||||
<Patches>
|
<Patches>
|
||||||
<Patch level="1">fedora/ghostscript-sys-zlib.patch</Patch>
|
<Patch level="1">fedora/ghostscript-sys-zlib.patch</Patch>
|
||||||
<!-- <Patch level="1">fedora/ghostscript-9.20-cve-2016-7976.patch</Patch> -->
|
<Patch level="1">CVE-2019-14869.patch</Patch>
|
||||||
<!-- <Patch level="1">fedora/ghostscript-9.20-cve-2016-7977.patch</Patch> -->
|
|
||||||
<!-- <Patch level="1">fedora/ghostscript-9.20-cve-2016-7978.patch</Patch> -->
|
|
||||||
<!-- <Patch level="1">fedora/ghostscript-9.20-cve-2016-7979.patch</Patch> -->
|
|
||||||
<!-- <Patch level="1">fedora/ghostscript-9.20-cve-2016-8602.patch</Patch> -->
|
|
||||||
<!-- <Patch level="1">fedora/ghostscript-9.20-cve-2016-9601.patch</Patch> -->
|
|
||||||
<!-- <Patch level="1">fedora/ghostscript-9.20-fix-openjpeg-system-build.patch</Patch> -->
|
|
||||||
<!-- <Patch level="1">fedora/ghostscript-9.20-handle-glyphdirectory-correctly.patch</Patch> -->
|
|
||||||
<!-- <Patch level="1">fedora/ghostscript-9.20-remove-and-reimplement-ConvertUTF.patch</Patch> -->
|
|
||||||
<Patch level="1">fedora/ghostscript-9.20-run-dvipdf-securely.patch</Patch>
|
|
||||||
<Patch level="1">fedora/ghostscript-9.27-upstream_fixes-1.patch</Patch>
|
|
||||||
</Patches>
|
</Patches>
|
||||||
</Source>
|
</Source>
|
||||||
|
|
||||||
@@ -149,6 +139,13 @@
|
|||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<History>
|
<History>
|
||||||
|
<Update release="9">
|
||||||
|
<Date>2020-01-14</Date>
|
||||||
|
<Version>9.50</Version>
|
||||||
|
<Comment>Version bump.</Comment>
|
||||||
|
<Name>Mustafa Cinasal</Name>
|
||||||
|
<Email>muscnsl@gmail.com</Email>
|
||||||
|
</Update>
|
||||||
<Update release="8">
|
<Update release="8">
|
||||||
<Date>2019-10-07</Date>
|
<Date>2019-10-07</Date>
|
||||||
<Version>9.27</Version>
|
<Version>9.27</Version>
|
||||||
|
|||||||
Reference in New Issue
Block a user