Skip to content

Commit

Permalink
pcre2: 10.22 -> 10.23 + security fix
Browse files Browse the repository at this point in the history
  • Loading branch information
globin committed Mar 26, 2017
1 parent 826ae5f commit 955b79f
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions pkgs/development/libraries/pcre2/default.nix
@@ -1,11 +1,11 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, fetchpatch }:

stdenv.mkDerivation rec {
name = "pcre2-${version}";
version = "10.22";
version = "10.23";
src = fetchurl {
url = "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${name}.tar.bz2";
sha256 = "05pl338962d7syd1rbkg96916mq7d3amz1n2fjnm0v5cyhcldd5j";
sha256 = "0vn5g0mkkp99mmzpissa06hpyj6pk9s4mlwbjqrjvw3ihy8rpiyz";
};

configureFlags = [
Expand All @@ -14,6 +14,23 @@ stdenv.mkDerivation rec {
"--enable-jit"
];

patches = [
(fetchpatch {
name = "CVE-2017-7186-part1.patch";
url = "https://vcs.pcre.org/pcre2/code/trunk/src/pcre2_ucd.c?view=patch&r1=316&r2=670&sortby=date";
sha256 = "10yzglvbn7h06hg7zffr5zh378i5jihvx7d5gggkynws79vgwvfr";
stripLen = 2;
addPrefixes = true;
})
(fetchpatch {
name = "CVE-2017-7186-part2.patch";
url = "https://vcs.pcre.org/pcre2/code/trunk/src/pcre2_internal.h?view=patch&r1=600&r2=670&sortby=date";
sha256 = "1bggk7vd5hg0bjg96lj4h1lacmr6grq68dm6iz1n7vg3zf7virjn";
stripLen = 2;
addPrefixes = true;
})
];

outputs = [ "bin" "dev" "out" "doc" "man" "devdoc" ];

postFixup = ''
Expand Down

0 comments on commit 955b79f

Please sign in to comment.