libtiff: patch for CVE-2019-6128

Closes #36789.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Tommy Yang 2019-02-06 21:31:45 -08:00 committed by FX Coudert
parent 662a0601bc
commit ec56a8a41c

View file

@ -4,6 +4,7 @@ class Libtiff < Formula
url "https://download.osgeo.org/libtiff/tiff-4.0.10.tar.gz"
mirror "https://fossies.org/linux/misc/tiff-4.0.10.tar.gz"
sha256 "2c52d11ccaf767457db0c46795d9c7d1a8d8f76f68b0b800a3dfe45786b996e4"
revision 1
bottle do
cellar :any
@ -15,9 +16,14 @@ class Libtiff < Formula
depends_on "jpeg"
# Patches are taken from latest Fedora package, which is currently
# libtiff-4.0.10-1.fc30.src.rpm and whose changelog is available at
# libtiff-4.0.10-2.fc30.src.rpm and whose changelog is available at
# https://apps.fedoraproject.org/packages/libtiff/changelog/
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/d15e00544e7df009b5ad34f3b65351fc249092c0/libtiff/libtiff-CVE-2019-6128.patch"
sha256 "dbec51f5bec722905288871e3d8aa3c41059a1ba322c1ac42ddc8d62646abc66"
end
def install
args = %W[
--prefix=#{prefix}