Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/libmuscle/files: 3.7-bufferoverflow.patch
Date: Mon, 28 Jun 2010 20:37:46
Message-Id: 20100628203743.C705D2C3ED@corvid.gentoo.org
1 jlec 10/06/28 20:37:43
2
3 Added: 3.7-bufferoverflow.patch
4 Log:
5 Fix for bufferoverflow, #309341
6 (Portage version: 2.2_rc67/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 sci-libs/libmuscle/files/3.7-bufferoverflow.patch
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libmuscle/files/3.7-bufferoverflow.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/libmuscle/files/3.7-bufferoverflow.patch?rev=1.1&content-type=text/plain
13
14 Index: 3.7-bufferoverflow.patch
15 ===================================================================
16 --- libMUSCLE/globalslinux.cpp.old 2010-03-14 19:03:14.000000000 +1300
17 +++ libMUSCLE/globalslinux.cpp 2010-03-14 19:11:09.000000000 +1300
18 @@ -159,7 +159,7 @@
19 }
20 return DEFAULT_RAM;
21 }
22 - int Bytes = atoi(pMem+9)*1000;
23 + long Bytes = atol(pMem+9)*1000;
24 return ((double) Bytes)/1e6;
25 }
26
27 --- libMUSCLE/progress.cpp.old 2010-03-14 19:50:27.000000000 +1300
28 +++ libMUSCLE/progress.cpp 2010-03-14 19:51:07.000000000 +1300
29 @@ -48,7 +48,7 @@
30 if (MB < 0)
31 return "";
32
33 - static char Str[9];
34 + static char Str[11];
35 static double MaxMB = 0;
36 static double RAMMB = 0;