Applied upstream gnulib patch to avoid -Wformat-security warning (bug #1037038).
Resolves: rhbz#1037038
This commit is contained in:
parent
5b4e2e345c
commit
445a625327
2 changed files with 27 additions and 1 deletions
17
diffutils-format-security.patch
Normal file
17
diffutils-format-security.patch
Normal file
|
|
@ -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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue