aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mono/strncat-process-c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/mono/strncat-process-c.patch')
-rw-r--r--testing/mono/strncat-process-c.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/mono/strncat-process-c.patch b/testing/mono/strncat-process-c.patch
new file mode 100644
index 0000000000..b80fb30d85
--- /dev/null
+++ b/testing/mono/strncat-process-c.patch
@@ -0,0 +1,11 @@
+--- ./mono/metadata/process.c 2015-08-26 12:42:25.000000000 +0300
++++ ./mono/metadata/process.c 2015-08-29 15:49:25.369632846 +0300
+@@ -380,7 +380,7 @@ static MonoObject* get_process_module (M
+ char filename [80] = "[In Memory] ";
+ const char *modulename = assembly->aname.name;
+
+- strncat (filename, modulename, 80);
++ strncat (filename, modulename, sizeof(filename)-strlen(filename)-1);
+
+ /* Build a System.Diagnostics.ProcessModule with the data.
+ */