[SCM] liblivemedia/master: Add patch to prevent build failure when compiled with -Wformat -Werror=format-security.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Thu Nov 22 13:16:52 UTC 2012


The following commit has been merged in the master branch:
commit f7473610a139995ba9e3494722108494a49ebfca
Author: Alessio Treglia <alessio at debian.org>
Date:   Thu Nov 22 12:55:52 2012 +0000

    Add patch to prevent build failure when compiled with -Wformat -Werror=format-security.

diff --git a/debian/patches/301_hardening.patch b/debian/patches/301_hardening.patch
new file mode 100644
index 0000000..82754eb
--- /dev/null
+++ b/debian/patches/301_hardening.patch
@@ -0,0 +1,19 @@
+Description: Prevent build failure when compiled with
+ -Wformat -Werror=format-security.
+Author: Alessio Treglia <alessio at debian.org>
+Forwarded: live-devel at lists.live555.com
+---
+ testProgs/sapWatch.cpp |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- liblivemedia.orig/testProgs/sapWatch.cpp
++++ liblivemedia/testProgs/sapWatch.cpp
+@@ -66,7 +66,7 @@ int main(int argc, char** argv) {
+     }
+ 
+     packet[packetSize] = '\0'; // just in case
+-    printf((char*)(packet+8));
++    printf("%s", (char*)(packet+8));
+   }
+ 
+   return 0; // only to prevent compiler warning
diff --git a/debian/patches/series b/debian/patches/series
index 1c0e127..8fda19e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 020_invalid_casts.diff
 021_ip_mreq_source.diff
 022_synchronous_rtspclient.patch
+301_hardening.patch

-- 
liblivemedia packaging



More information about the pkg-multimedia-commits mailing list