mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
netpbm: fix CVE-2005-2471
This commit is contained in:
parent
c744a7e106
commit
15a5894ab3
@ -10,6 +10,11 @@ stdenv.mkDerivation {
|
||||
sha256 = "0csx6g0ci66nx1a6z0a9dkpfp66mdvcpp5r7g6zrx4jp18r9hzb2";
|
||||
};
|
||||
|
||||
postPatch = /* CVE-2005-2471, from Arch */ ''
|
||||
substituteInPlace converter/other/pstopnm.c \
|
||||
--replace '"-DSAFER"' '"-DPARANOIDSAFER"'
|
||||
'';
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-fPIC"; # Gentoo adds this on every platform
|
||||
|
||||
buildInputs = [ pkgconfig flex zlib perl libpng libjpeg libxml2 makeWrapper libX11 libtiff ];
|
||||
|
Loading…
Reference in New Issue
Block a user