[med-svn] [canu] 05/05: Fix gcc-7 error (violation of format-security)
Andreas Tille
tille at debian.org
Sat Sep 2 13:54:57 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository canu.
commit 26718715ad25aa6a27dcb4f88268665cd0ac5f95
Author: Andreas Tille <tille at debian.org>
Date: Sat Sep 2 15:50:11 2017 +0200
Fix gcc-7 error (violation of format-security)
---
debian/changelog | 2 +
debian/patches/gcc-7_format-security.patch | 88 ++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 91 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index b22b588..b7bc3e5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ canu (1.6+dfsg-1) UNRELEASED; urgency=medium
* New upstream version
* debhelper 10
* Standards-Version: 4.1.0 (no changes needed)
+ * Fix gcc-7 error (violation of format-security)
+ Closes: #871390
-- Andreas Tille <tille at debian.org> Sat, 02 Sep 2017 15:30:21 +0200
diff --git a/debian/patches/gcc-7_format-security.patch b/debian/patches/gcc-7_format-security.patch
new file mode 100644
index 0000000..ce1ac58
--- /dev/null
+++ b/debian/patches/gcc-7_format-security.patch
@@ -0,0 +1,88 @@
+Author: Andreas Tille <tille at debian.org>
+last-Update: Sat, 02 Sep 2017 15:30:21 +0200
+Bug-Debian: https://bugs.debian.org/871390
+Description: Fix gcc-7 error (violation of format-security)
+
+--- a/src/merTrim/merTrim.C
++++ b/src/merTrim/merTrim.C
+@@ -1782,7 +1782,7 @@ mertrimComputation::dump(char *label) {
+ if (i+1 == clrEnd) { logLine[logPos++] = ']'; logLine[logPos++] = '-'; }
+ }
+ strcpy(logLine + logPos, " (ORI)\n");
+- fprintf(stderr, logLine);
++ fprintf(stderr, "%s", logLine);
+
+ logPos = 0;
+ for (uint32 i=0; i<seqLen; i++) {
+@@ -1792,7 +1792,7 @@ mertrimComputation::dump(char *label) {
+ if (i+1 == clrEnd) { logLine[logPos++] = ']'; logLine[logPos++] = '-'; }
+ }
+ strcpy(logLine + logPos, " (SEQ)\n");
+- fprintf(stderr, logLine);
++ fprintf(stderr, "%s", logLine);
+
+ if (corrSeq && verifySeq) {
+ uint32 i=0;
+@@ -1813,7 +1813,7 @@ mertrimComputation::dump(char *label) {
+ if (i+1 == clrEnd) { logLine[logPos++] = ']'; logLine[logPos++] = '-'; }
+ }
+ strcpy(logLine + logPos, " (VAL)\n");
+- fprintf(stderr, logLine);
++ fprintf(stderr, "%s", logLine);
+
+ logPos = 0;
+ for (uint32 i=0; i<seqLen; i++) {
+@@ -1823,7 +1823,7 @@ mertrimComputation::dump(char *label) {
+ if (i+1 == clrEnd) { logLine[logPos++] = ']'; logLine[logPos++] = '-'; }
+ }
+ strcpy(logLine + logPos, " (VAL)\n");
+- fprintf(stderr, logLine);
++ fprintf(stderr, "%s", logLine);
+ }
+
+ logPos = 0;
+@@ -1834,7 +1834,7 @@ mertrimComputation::dump(char *label) {
+ if (i+1 == clrEnd) { logLine[logPos++] = ']'; logLine[logPos++] = '-'; }
+ }
+ strcpy(logLine + logPos, " (QLT)\n");
+- fprintf(stderr, logLine);
++ fprintf(stderr, "%s", logLine);
+
+ logPos = 0;
+ for (uint32 i=0; i<seqLen; i++) {
+@@ -1844,7 +1844,7 @@ mertrimComputation::dump(char *label) {
+ if (i+1 == clrEnd) { logLine[logPos++] = ']'; logLine[logPos++] = '-'; }
+ }
+ strcpy(logLine + logPos, " (COVERAGE)\n");
+- fprintf(stderr, logLine);
++ fprintf(stderr, "%s", logLine);
+
+ logPos = 0;
+ for (uint32 i=0; i<seqLen; i++) {
+@@ -1854,7 +1854,7 @@ mertrimComputation::dump(char *label) {
+ if (i+1 == clrEnd) { logLine[logPos++] = ']'; logLine[logPos++] = '-'; }
+ }
+ strcpy(logLine + logPos, " (CORRECTIONS)\n");
+- fprintf(stderr, logLine);
++ fprintf(stderr, "%s", logLine);
+
+ logPos = 0;
+ for (uint32 i=0; i<seqLen; i++) {
+@@ -1864,7 +1864,7 @@ mertrimComputation::dump(char *label) {
+ if (i+1 == clrEnd) { logLine[logPos++] = ']'; logLine[logPos++] = '-'; }
+ }
+ strcpy(logLine + logPos, " (DISCONNECTION)\n");
+- fprintf(stderr, logLine);
++ fprintf(stderr, "%s", logLine);
+
+ logPos = 0;
+ for (uint32 i=0; i<seqLen; i++) {
+@@ -1874,7 +1874,7 @@ mertrimComputation::dump(char *label) {
+ if (i+1 == clrEnd) { logLine[logPos++] = ']'; logLine[logPos++] = '-'; }
+ }
+ strcpy(logLine + logPos, " (ADAPTER)\n");
+- fprintf(stderr, logLine);
++ fprintf(stderr, "%s", logLine);
+
+ delete [] logLine;
+ }
diff --git a/debian/patches/series b/debian/patches/series
index 033f46d..2f807d2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
external-deps.patch
relative-paths.patch
use-debian-mhap-at-runtime.patch
+gcc-7_format-security.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/canu.git
More information about the debian-med-commit
mailing list