[med-svn] [bart] 06/08: add patch for format security

Martin Uecker uecker-guest at moszumanska.debian.org
Sat Jan 14 16:42:21 UTC 2017


This is an automated email from the git hooks/post-receive script.

uecker-guest pushed a commit to branch master
in repository bart.

commit 00e28aabd910429036a66606568c7ff004fcb5c7
Author: Martin Uecker <martin.uecker at med.uni-goettingen.de>
Date:   Sat Jan 14 16:02:40 2017 +0100

    add patch for format security
---
 .../patches/0002-make-format-security-happy.patch   | 21 +++++++++++++++++++++
 debian/patches/series                               |  1 +
 2 files changed, 22 insertions(+)

diff --git a/debian/patches/0002-make-format-security-happy.patch b/debian/patches/0002-make-format-security-happy.patch
new file mode 100644
index 0000000..b7265a4
--- /dev/null
+++ b/debian/patches/0002-make-format-security-happy.patch
@@ -0,0 +1,21 @@
+From: Martin Uecker <martin.uecker at med.uni-goettingen.de>
+Date: Sat, 14 Jan 2017 16:01:46 +0100
+Subject: make format security happy
+
+---
+ src/show.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/show.c b/src/show.c
+index a363bff..e29e749 100644
+--- a/src/show.c
++++ b/src/show.c
+@@ -58,7 +58,7 @@ ok:
+ 	for (long i = 0; i < T; i++) {
+ 
+ 		printf(fmt, crealf(data[i]), cimagf(data[i]));
+-		printf((0 == (i + 1) % dims[l]) ? "\n" : sep);
++		printf("%s", (0 == (i + 1) % dims[l]) ? "\n" : sep);
+ 	}
+ }
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 1d193a4..3dca9cc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-remove-empty-directory.patch
+0002-make-format-security-happy.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/bart.git



More information about the debian-med-commit mailing list