Skip to content

Commit

Permalink
ghostscript: upstream fix for .eqproc regression
Browse files Browse the repository at this point in the history
The bug was caused by the first part of the patch for CVE-2017-8291.

Fixes #13398.

Closes #14721.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
  • Loading branch information
ilovezfs committed Jun 19, 2017
1 parent ab5ba70 commit 3318b9d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Formula/ghostscript.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Ghostscript < Formula
desc "Interpreter for PostScript and PDF"
homepage "https://www.ghostscript.com/"
revision 1
revision 2

stable do
url "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs921/ghostscript-9.21.tar.xz"
Expand All @@ -24,6 +24,15 @@ class Ghostscript < Formula
url "https://git.ghostscript.com/?p=ghostpdl.git;a=patch;h=04b37bbce1"
sha256 "366bf4ded600fc7b0a8e2b0d4c877cc3ad5a0ccc192cb660d81f729575a47259"
end

# Remove for > 9.21
# Fixes regression caused by the first part of the CVE-2017-8291 fix above
# https://bugs.ghostscript.com/show_bug.cgi?id=697846
# Upstream commit from 3 May 2017 "Bug 697846: revision to commit 4f83478c88 (.eqproc)"
patch do
url "https://git.ghostscript.com/?p=ghostpdl.git;a=patch;h=57f20719e1"
sha256 "0b2f6008542c6f01caf20f56aa084cd906b96e0974820f2b613b1ae12618b233"
end
end

bottle do
Expand Down

0 comments on commit 3318b9d

Please sign in to comment.