[mupen64plus-ui-console] 111/172: Add printf-format attribute

Sven Eckelmann ecsv-guest at moszumanska.debian.org
Thu Nov 26 06:07:38 UTC 2015


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

ecsv-guest pushed a commit to branch armhf_test
in repository mupen64plus-ui-console.

commit af7a3f4303c25f7309d07d523afa179c4ac57805
Author: Sven Eckelmann <sven at narfation.org>
Date:   Tue Sep 11 09:37:08 2012 +0200

    Add printf-format attribute
---
 debian/changelog                  |  2 ++
 debian/patches/printf_fixup.patch | 20 ++++++++++++++++++++
 debian/patches/series             |  1 +
 3 files changed, 23 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 83194c0..7d29d1b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 mupen64plus-ui-console (1.99.5+6+a10c576ef396-1) UNRELEASED; urgency=low
 
   * New Upstream Snapshot from a10c576ef39638f14e40010836c409de2d6ac6b4
+  * debian/patches:
+    - Add printf_fixup.patch, Add printf-format attribute
 
  -- Sven Eckelmann <sven at narfation.org>  Tue, 11 Sep 2012 09:20:30 +0200
 
diff --git a/debian/patches/printf_fixup.patch b/debian/patches/printf_fixup.patch
new file mode 100644
index 0000000..351c921
--- /dev/null
+++ b/debian/patches/printf_fixup.patch
@@ -0,0 +1,20 @@
+Description: Add printf-format attribute
+ The compiler needs to get more information for function declaration to
+ help to find printf specific format attacks.
+Forwarded: not-needed
+Author: Sven Eckelmann <sven at narfation.org>
+
+---
+diff --git a/src/main.h b/src/main.h
+index 5ab3752640659a582db9832a17867e8b73039fa6..b2db67ced0af37107e9931786b459aac3c9e622f 100644
+--- a/src/main.h
++++ b/src/main.h
+@@ -22,7 +22,7 @@
+ #ifndef __MAIN_H__
+ #define __MAIN_H__
+ 
+-extern void DebugMessage(int level, const char *message, ...);
++extern void DebugMessage(int level, const char *message, ...)  __attribute__ ((format (printf, 2, 3)));
+ extern void DebugCallback(void *Context, int level, const char *message);
+ 
+ extern int  g_Verbose;
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..5a5a78d
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+printf_fixup.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mupen64plus-ui-console.git



More information about the Pkg-games-commits mailing list