Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
perlPackages.libapreq2: add patch for CVE-2019-12412
Browse files Browse the repository at this point in the history
  • Loading branch information
risicle committed Oct 26, 2019
1 parent a8fccf2 commit 68d4a1b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkgs/top-level/perl-packages.nix
Expand Up @@ -5,7 +5,7 @@
for each package in a separate file: the call to the function would
be almost as much code as the function itself. */

{config, pkgs, fetchurl, stdenv, perl, overrides, buildPerl, shortenPerlShebang}:
{config, pkgs, fetchurl, fetchpatch, stdenv, perl, overrides, buildPerl, shortenPerlShebang}:

# cpan2nix assumes that perl-packages.nix will be used only with perl 5.28.2 or above
assert stdenv.lib.versionAtLeast perl.version "5.28.2";
Expand Down Expand Up @@ -9489,6 +9489,14 @@ let
url = mirror://cpan/authors/id/I/IS/ISAAC/libapreq2-2.13.tar.gz;
sha256 = "5731e6833b32d88e4a5c690e45ddf20fcf969ce3da666c5627d775e92da0cf6e";
};
patches = [
(fetchpatch {
name = "CVE-2019-12412.patch";
url = "https://svn.apache.org/viewvc/httpd/apreq/trunk/library/parser_multipart.c?r1=1866760&r2=1866759&pathrev=1866760&view=patch";
sha256 = "08zaw5pb2i4w1y8crhxmlf0d8gzpvi9z49x4nwlkg4j87x7gjvaa";
stripLen = 2;
})
];
outputs = [ "out" ];
buildInputs = [ pkgs.apacheHttpd pkgs.apr pkgs.aprutil ApacheTest ExtUtilsXSBuilder ];
propagatedBuildInputs = [ (pkgs.apacheHttpdPackages.mod_perl.override { inherit perl; }) ];
Expand Down

0 comments on commit 68d4a1b

Please sign in to comment.