package: binutils-m68hc1x
version: 1:2.18-3.1
severity: serious

dpkg-buildflags now supplies -Werror=format-security by default. This makes binutils-m68hc1x FTBFS.

I first noticed the failure when looking at armhf (and s390x as a confirming point) build logs. but I
can reproduce the issue locally on amd64.

Patch is attatched just drop it in debian/patches (the package uses custom patch code that applies all
patches in that directory after unpacking the binutils tarball).
--- binutils-2.18/binutils/cxxfilt.c	2007-08-06 19:55:10.000000000 +0000
+++ binutils-2.18/binutils/cxxfilt.c	2011-12-13 00:13:40.000000000 +0000
@@ -63,12 +63,12 @@
   result = cplus_demangle (mangled_name + skip_first, flags);
 
   if (result == NULL)
-    printf (mangled_name);
+    printf ("%s",mangled_name);
   else
     {
       if (mangled_name[0] == '.')
 	putchar ('.');
-      printf (result);
+      printf ("%s",result);
       free (result);
     }
 }

Reply via email to