From 93294fc5c8fe8761d224bbb448e2d0d8d9f54c8b Mon Sep 17 00:00:00 2001 From: adisbladis Date: Tue, 28 Nov 2017 12:47:37 +0800 Subject: [PATCH] pcre2: Patch for CVE-2017-8786 --- pkgs/development/libraries/pcre2/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/pcre2/default.nix b/pkgs/development/libraries/pcre2/default.nix index 3b698ff74cfa..dd562d2e0f1c 100644 --- a/pkgs/development/libraries/pcre2/default.nix +++ b/pkgs/development/libraries/pcre2/default.nix @@ -29,6 +29,13 @@ stdenv.mkDerivation rec { stripLen = 2; addPrefixes = true; }) + (fetchpatch { + name = "CVE-2017-8786.patch"; + url = "https://vcs.pcre.org/pcre2/code/trunk/src/pcre2test.c?r1=692&r2=697&view=patch"; + sha256 = "1c629nzrk4il2rfclwyc1a373q58m4q9ys9wr91zhl4skfk7x19b"; + stripLen = 2; + addPrefixes = true; + }) ]; outputs = [ "bin" "dev" "out" "doc" "man" "devdoc" ];