[SCM] libindi packaging branch, master, updated. f66a43d308df19a62e4b13b3378539e171e3f0b6

Pino Toscano pino at alioth.debian.org
Thu Sep 29 12:28:07 UTC 2011


The following commit has been merged in the master branch:
commit e25f6cb5ea8c72599002fce7a07b5e2733a951a8
Author: Pino Toscano <pino at debian.org>
Date:   Thu Sep 29 12:57:49 2011 +0200

    add patch format-security.diff to fix string literals for snprintf()
---
 debian/changelog                    |    2 ++
 debian/patches/format-security.diff |   22 ++++++++++++++++++++++
 debian/patches/series               |    1 +
 3 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 870d84d..76fb72d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,7 @@
 libindi (0.8-0r1) UNRELEASED; urgency=low
 
   * Initial release.
+  * Add patches:
+    - format-security.diff: fix string literals for snprintf() invocations
 
  -- Pino Toscano <pino at debian.org>  Thu, 29 Sep 2011 10:53:33 +0200
diff --git a/debian/patches/format-security.diff b/debian/patches/format-security.diff
new file mode 100644
index 0000000..8586115
--- /dev/null
+++ b/debian/patches/format-security.diff
@@ -0,0 +1,22 @@
+Author: Pino Toscano <pino at debian.org>
+Description: fix literal strings for string printf-like format
+ Make the text buffers const, so they can be properly handled as string
+ literals for snprintf().
+Last-Update: 2011-09-29
+Forwarded: no
+
+--- a/tools/compiler.c
++++ b/tools/compiler.c
+@@ -266,9 +266,9 @@
+ static int
+ next_token ()
+ {
+-	static char toomv[] = "More than %d variables";
+-	static char toomc[] = "More than %d constants";
+-	static char badop[] = "Illegal operator";
++	static const char toomv[] = "More than %d variables";
++	static const char toomc[] = "More than %d constants";
++	static const char badop[] = "Illegal operator";
+ 	int tok = ERR;	/* just something illegal */
+ 	char c;
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ad58f69
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+format-security.diff

-- 
libindi packaging



More information about the pkg-kde-commits mailing list