git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #18919 from grahamc/fcgi

fcgi: Patch to protect against stack smashing

commitfe27ae5f27f7eeca1839d03abbe188796e49d326 authorGraham Christensen <graham@grahamc.com> dateSun 25 Sep 2016, 14:33 (10 years ago) parentedddd76da6b9f4
1 file changed+14−4
pkgs/development/libraries/fcgi/default.nix+14−4
pkgs/development/libraries/fcgi/default.nix+14−4
@@ -1,14 +1,24 @@
1−{ stdenv, fetchurl }:
1+{ stdenv, fetchurl, fetchpatch }:
22
33stdenv.mkDerivation rec {
4− name = "fcgi-2.4.0";
4+ name = "fcgi-${version}";
5+ version = "2.4.0";
56
67 src = fetchurl {
7− url = "http://www.fastcgi.com/dist/${name}.tar.gz";
8+ url = "https://launchpad.net/debian/+archive/primary/+files/libfcgi_${version}.orig.tar.gz";
9+ # url = "http://www.fastcgi.com/dist/${name}.tar.gz";
810 sha256 = "1f857wnl1d6jfrgfgfpz3zdaj8fch3vr13mnpcpvy8bang34bz36";
911 };
1012
11− patches = [ ./gcc-4.4.diff ];
13+ patches = [
14+ ./gcc-4.4.diff
15+ (fetchpatch {
16+ # Fix a stack-smashing bug:
17+ # xhttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=681591
18+ url = "https://bugs.launchpad.net/ubuntu/+source/libfcgi/+bug/933417/+attachment/2745025/+files/poll.patch";
19+ sha256 = "0v3gw0smjvrxh1bv3zx9xp633gbv5dd5bcn3ipj6ckqjyv4i6i7m";
20+ })
21+ ];
1222
1323 postInstall = "ln -s . $out/include/fastcgi";
1424