]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
diffutils: Fix build (format security)
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 6 Apr 2015 19:51:24 +0000 (15:51 -0400)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 6 Apr 2015 22:30:07 +0000 (00:30 +0200)
diffutils/diffutils.nm
diffutils/patches/diffutils-format-security.patch [new file with mode: 0644]

index 1ef95de305575a0ac98f68ffc7f48d13fe0dc3f5..94d81d445188d72f748a466f08673ad9e2664edd 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = diffutils
 version    = 3.3
-release    = 1
+release    = 2
 
 groups     = Development/Tools
 url        = http://www.gnu.org/software/diffutils/diffutils.html
diff --git a/diffutils/patches/diffutils-format-security.patch b/diffutils/patches/diffutils-format-security.patch
new file mode 100644 (file)
index 0000000..9658644
--- /dev/null
@@ -0,0 +1,17 @@
+diff -up diffutils-3.3/gnulib-tests/test-xvasprintf.c.format-security diffutils-3.3/gnulib-tests/test-xvasprintf.c
+--- diffutils-3.3/gnulib-tests/test-xvasprintf.c.format-security       2013-03-22 04:20:50.000000000 +0000
++++ diffutils-3.3/gnulib-tests/test-xvasprintf.c       2013-12-04 13:43:09.927443499 +0000
+@@ -16,6 +16,13 @@
+ /* Written by Bruno Haible <bruno@clisp.org>, 2007.  */
++/* Tell GCC not to warn about the specific edge cases tested here.  */
++#if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__
++# pragma GCC diagnostic ignored "-Wformat-zero-length"
++# pragma GCC diagnostic ignored "-Wformat-nonliteral"
++# pragma GCC diagnostic ignored "-Wformat-security"
++#endif
++
+ #include <config.h>
+ #include "xvasprintf.h"