1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 07:31:20 +00:00

qpdf: apply patch for CVE-2018-9918

in context of #41748
This commit is contained in:
Pascal Wittmann 2018-06-17 14:38:58 +02:00
parent c8d3779020
commit 20ee8fbb1e
No known key found for this signature in database
GPG key ID: C899ACE7E2322852

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, libjpeg, zlib, perl }:
{ stdenv, fetchurl, fetchpatch, libjpeg, zlib, perl }:
let version = "8.0.2";
in
@ -14,6 +14,14 @@ stdenv.mkDerivation rec {
buildInputs = [ zlib libjpeg ];
patches = [
(fetchpatch {
name = "CVE-2018-9918.patch";
url = "https://github.com/qpdf/qpdf/commit/b4d6cf6836ce025ba1811b7bbec52680c7204223";
sha256 = "0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73";
})
];
postPatch = ''
patchShebangs qpdf/fix-qdf
'';