diff options
author | Justin Lecher <jlec@gentoo.org> | 2015-12-25 12:01:28 +0100 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2015-12-25 12:44:51 +0100 |
commit | 52486aed57b047d4c834cc10d4f70229e5e67891 (patch) | |
tree | 1ed65c04b3998dda9bebae1c955871dfda554c3a /sci-libs/libmems | |
parent | sci-libs/libmems: Version bump, fix bug 529770 and QA issues. (diff) | |
download | gentoo-52486aed57b047d4c834cc10d4f70229e5e67891.tar.gz gentoo-52486aed57b047d4c834cc10d4f70229e5e67891.tar.bz2 gentoo-52486aed57b047d4c834cc10d4f70229e5e67891.zip |
sci-libs/libmems: Fix for format-security
Package-Manager: portage-2.2.26
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'sci-libs/libmems')
-rw-r--r-- | sci-libs/libmems/files/libmems-1.6_p1-format-security.patch | 16 | ||||
-rw-r--r-- | sci-libs/libmems/libmems-1.6_p1-r1.ebuild | 1 |
2 files changed, 17 insertions, 0 deletions
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 new file mode 100644 index 000000000000..3ad3da2a8d80 --- /dev/null +++ b/sci-libs/libmems/files/libmems-1.6_p1-format-security.patch @@ -0,0 +1,16 @@ + libMems/dmSML/dmsort.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libMems/dmSML/dmsort.c b/libMems/dmSML/dmsort.c +index 4c99215..2cbfa7e 100644 +--- a/libMems/dmSML/dmsort.c ++++ b/libMems/dmSML/dmsort.c +@@ -825,7 +825,7 @@ int InitdmSML( long working_mb, long buffer_size, const char* input_filename, co + if ( fgets(buf, sizeof(buf), fp) ) + { + sscanf(buf, "MemTotal: %ld kB", &memTotal); +- fprintf( stderr, buf ); ++ fprintf( stderr, "%s", buf ); + } + fclose(fp); + // allocate about 6/10 of physical memory diff --git a/sci-libs/libmems/libmems-1.6_p1-r1.ebuild b/sci-libs/libmems/libmems-1.6_p1-r1.ebuild index 2e094ab42ce2..ac61e5455337 100644 --- a/sci-libs/libmems/libmems-1.6_p1-r1.ebuild +++ b/sci-libs/libmems/libmems-1.6_p1-r1.ebuild @@ -28,6 +28,7 @@ PATCHES=( "${FILESDIR}"/${P}-boost.patch "${FILESDIR}"/${P}-gcc-4.7.patch "${FILESDIR}"/${P}-broken-constness.patch + "${FILESDIR}"/${P}-format-security.patch ) src_prepare() { |