libexif: fix CVE-2017-7544

Patch application simplified during rebasing.
This commit is contained in:
Andreas Rammhold 2017-11-09 11:49:23 +01:00 committed by Vladimír Čunát
parent 4d4cd769f6
commit 73bec97674
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, gettext }: { stdenv, fetchurl, fetchpatch, gettext }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libexif-0.6.21"; name = "libexif-0.6.21";
@ -8,6 +8,15 @@ stdenv.mkDerivation rec {
sha256 = "06nlsibr3ylfwp28w8f5466l6drgrnydgxrm4jmxzrmk5svaxk8n"; sha256 = "06nlsibr3ylfwp28w8f5466l6drgrnydgxrm4jmxzrmk5svaxk8n";
}; };
patches = [
(fetchpatch {
name = "CVE-2017-7544.patch";
url = https://sourceforge.net/p/libexif/bugs/_discuss/thread/fc394c4b/489a/attachment/xx.pat;
sha256 = "1qgk8hgnxr8d63jsc4vljxz9yg33mbml280dq4a6050rmk9wq4la";
})
];
patchFlags = "-p0";
buildInputs = [ gettext ]; buildInputs = [ gettext ];
meta = { meta = {