Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dmtcp: fix buffer overflow due to too long ld-linux.so path
- Loading branch information
Showing
2 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
pkgs/os-specific/linux/dmtcp/ld-linux-so-buffer-size.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- dmtcp-2.5.1-src/src/util_exec.cpp 2017-09-19 13:36:22.947587034 +0200 | ||
+++ dmtcp-2.5.1-src/src/util_exec.cpp 2017-09-19 13:36:32.221313460 +0200 | ||
@@ -178,7 +178,7 @@ | ||
|
||
static string ld_linux_so_path(int version, bool is32bitElf = false) | ||
{ | ||
- char buf[80]; | ||
+ char buf[128]; | ||
#if (defined(__x86_64__) || defined(__aarch64__)) && !defined(CONFIG_M32) | ||
if (is32bitElf) { | ||
sprintf(buf, "/lib/ld-linux.so.%d", version); |