summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-biology/muscle/files/3.7-bufferoverflow.patch')
-rw-r--r--sci-biology/muscle/files/3.7-bufferoverflow.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/sci-biology/muscle/files/3.7-bufferoverflow.patch b/sci-biology/muscle/files/3.7-bufferoverflow.patch
new file mode 100644
index 000000000000..62dab42e3cb5
--- /dev/null
+++ b/sci-biology/muscle/files/3.7-bufferoverflow.patch
@@ -0,0 +1,22 @@
+--- libMUSCLE/globalslinux.cpp.old 2010-03-14 19:03:14.000000000 +1300
++++ libMUSCLE/globalslinux.cpp 2010-03-14 19:11:09.000000000 +1300
+@@ -159,7 +159,7 @@
+ }
+ return DEFAULT_RAM;
+ }
+- int Bytes = atoi(pMem+9)*1000;
++ long Bytes = atol(pMem+9)*1000;
+ return ((double) Bytes)/1e6;
+ }
+
+--- libMUSCLE/progress.cpp.old 2010-03-14 19:50:27.000000000 +1300
++++ libMUSCLE/progress.cpp 2010-03-14 19:51:07.000000000 +1300
+@@ -48,7 +48,7 @@
+ if (MB < 0)
+ return "";
+
+- static char Str[9];
++ static char Str[16];
+ static double MaxMB = 0;
+ static double RAMMB = 0;
+