@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl }:
1+{ stdenv, fetchurl, fetchpatch }:
22
33stdenv.mkDerivation rec {
44 name = "jbig2dec-0.13";
@@ -8,6 +8,14 @@ stdenv.mkDerivation rec {
88 sha256 = "04akiwab8iy5iy34razcvh9mcja9wy737civ3sbjxk4j143s1b2s";
99 };
1010
11+ patches =
12+ [ (fetchpatch {
13+ url = "http://git.ghostscript.com/?p=jbig2dec.git;a=patch;h=e698d5c11d27212aa1098bc5b1673a3378563092";
14+ sha256 = "1fc8xm1z98xj2zkcl0zj7dpjjsbz3vn61b59jnkhcyzy3iiczv7f";
15+ name = "CVE-2016-9601.patch";
16+ })
17+ ];
18+
1119 meta = {
1220 homepage = https://www.ghostscript.com/jbig2dec.html;
1321 description = "Decoder implementation of the JBIG2 image compression format";