dmtcp: fix buffer overflow due to too long ld-linux.so path

fixes #29565
This commit is contained in:
Robin Gloster
2017-09-19 13:41:12 +02:00
parent d63b59adf9
commit 5c18c55062
2 changed files with 13 additions and 3 deletions
+2 -3
View File
@@ -13,15 +13,14 @@ stdenv.mkDerivation rec {
dontDisableStatic = true;
patches = [ ./ld-linux-so-buffer-size.patch ];
postPatch = ''
patchShebangs .
substituteInPlace configure \
--replace '#define ELF_INTERPRETER "$interp"' \
"#define ELF_INTERPRETER \"$(cat $NIX_CC/nix-support/dynamic-linker)\""
'';
preConfigure = ''
substituteInPlace src/dmtcp_coordinator.cpp \
--replace /bin/bash ${stdenv.shell}
substituteInPlace util/gdb-add-symbol-file \