Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/libmems/files/, sci-libs/libmems/
Date: Fri, 25 Dec 2015 11:45:06
Message-Id: 1451043891.52486aed57b047d4c834cc10d4f70229e5e67891.jlec@gentoo
1 commit: 52486aed57b047d4c834cc10d4f70229e5e67891
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 25 11:01:28 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 25 11:44:51 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52486aed
7
8 sci-libs/libmems: Fix for format-security
9
10 Package-Manager: portage-2.2.26
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 .../libmems/files/libmems-1.6_p1-format-security.patch | 16 ++++++++++++++++
14 sci-libs/libmems/libmems-1.6_p1-r1.ebuild | 1 +
15 2 files changed, 17 insertions(+)
16
17 diff --git a/sci-libs/libmems/files/libmems-1.6_p1-format-security.patch b/sci-libs/libmems/files/libmems-1.6_p1-format-security.patch
18 new file mode 100644
19 index 0000000..3ad3da2
20 --- /dev/null
21 +++ b/sci-libs/libmems/files/libmems-1.6_p1-format-security.patch
22 @@ -0,0 +1,16 @@
23 + libMems/dmSML/dmsort.c | 2 +-
24 + 1 file changed, 1 insertion(+), 1 deletion(-)
25 +
26 +diff --git a/libMems/dmSML/dmsort.c b/libMems/dmSML/dmsort.c
27 +index 4c99215..2cbfa7e 100644
28 +--- a/libMems/dmSML/dmsort.c
29 ++++ b/libMems/dmSML/dmsort.c
30 +@@ -825,7 +825,7 @@ int InitdmSML( long working_mb, long buffer_size, const char* input_filename, co
31 + if ( fgets(buf, sizeof(buf), fp) )
32 + {
33 + sscanf(buf, "MemTotal: %ld kB", &memTotal);
34 +- fprintf( stderr, buf );
35 ++ fprintf( stderr, "%s", buf );
36 + }
37 + fclose(fp);
38 + // allocate about 6/10 of physical memory
39
40 diff --git a/sci-libs/libmems/libmems-1.6_p1-r1.ebuild b/sci-libs/libmems/libmems-1.6_p1-r1.ebuild
41 index 2e094ab..ac61e54 100644
42 --- a/sci-libs/libmems/libmems-1.6_p1-r1.ebuild
43 +++ b/sci-libs/libmems/libmems-1.6_p1-r1.ebuild
44 @@ -28,6 +28,7 @@ PATCHES=(
45 "${FILESDIR}"/${P}-boost.patch
46 "${FILESDIR}"/${P}-gcc-4.7.patch
47 "${FILESDIR}"/${P}-broken-constness.patch
48 + "${FILESDIR}"/${P}-format-security.patch
49 )
50
51 src_prepare() {