summaryrefslogtreecommitdiff
path: root/x11-misc/viewglob/files/viewglob-2.0.4-format-security.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-misc/viewglob/files/viewglob-2.0.4-format-security.patch
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-misc/viewglob/files/viewglob-2.0.4-format-security.patch')
-rw-r--r--x11-misc/viewglob/files/viewglob-2.0.4-format-security.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/x11-misc/viewglob/files/viewglob-2.0.4-format-security.patch b/x11-misc/viewglob/files/viewglob-2.0.4-format-security.patch
new file mode 100644
index 000000000000..98490e3836c9
--- /dev/null
+++ b/x11-misc/viewglob/files/viewglob-2.0.4-format-security.patch
@@ -0,0 +1,36 @@
+ common/syslogging.c | 2 +-
+ vgseer/vgseer.c | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/common/syslogging.c b/common/syslogging.c
+index dcb7106..df0b537 100644
+--- a/common/syslogging.c
++++ b/common/syslogging.c
+@@ -40,6 +40,6 @@ void syslogging(const gchar* log_domain, GLogLevelFlags log_level,
+ else
+ priority = LOG_NOTICE;
+
+- syslog(priority, message);
++ syslog(priority, "%s", message);
+ }
+
+diff --git a/vgseer/vgseer.c b/vgseer/vgseer.c
+index e045835..18b0024 100644
+--- a/vgseer/vgseer.c
++++ b/vgseer/vgseer.c
+@@ -276,13 +276,13 @@ static gint connect_to_vgd(gchar* server, gchar* port,
+ if (STREQ(value, "ERROR")) {
+ /* Print reason for error and exit. */
+ get_param_verify(fd, &param, &value, P_REASON, NULL);
+- g_critical(value);
++ g_critical("%s", value);
+ clean_fail(NULL);
+ }
+ else if (STREQ(value, "WARNING")) {
+ /* Print warning but continue. */
+ get_param_verify(fd, &param, &value, P_REASON, NULL);
+- g_warning(value);
++ g_warning("%s", value);
+ }
+ else if (!STREQ(value, "OK")) {
+ g_critical("Unknown value for P_STATUS: %s", value);