diff options
Diffstat (limited to 'source/l/glib/glib-1.2.10-format.patch')
-rw-r--r-- | source/l/glib/glib-1.2.10-format.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/source/l/glib/glib-1.2.10-format.patch b/source/l/glib/glib-1.2.10-format.patch new file mode 100644 index 00000000..e4812534 --- /dev/null +++ b/source/l/glib/glib-1.2.10-format.patch @@ -0,0 +1,29 @@ +--- grel.c ++++ grel.c +@@ -413,7 +413,7 @@ g_relation_print_one (gpointer tuple_key + } + + g_string_append (gstring, "]"); +- g_log (g_log_domain_glib, G_LOG_LEVEL_INFO, gstring->str); ++ g_log (g_log_domain_glib, G_LOG_LEVEL_INFO, "%s", gstring->str); + g_string_free (gstring, TRUE); + } + +--- testglib.c ++++ testglib.c +@@ -277,6 +277,9 @@ my_traverse (gpointer key, + return FALSE; + } + ++/* This program explicitly tests for a NULL format string */ ++#pragma GCC diagnostic push ++#pragma GCC diagnostic warning "-Wformat-security" + int + main (int argc, + char *argv[]) +@@ -918,4 +921,5 @@ main (int argc, + + return 0; + } ++#pragma GCC diagnostic pop + |