[geany/geany-plugins] eaef82: scope: Don't use an untrusted string as a printf format
Colomban Wendling
git-noreply at xxxxx
Fri Oct 2 15:39:35 UTC 2015
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Fri, 02 Oct 2015 15:39:35 UTC
Commit: eaef82ada225f45cf83cff0bb24cc6c2f18705fd
https://github.com/geany/geany-plugins/commit/eaef82ada225f45cf83cff0bb24cc6c2f18705fd
Log Message:
-----------
scope: Don't use an untrusted string as a printf format
Reported by GCC's `-Wformat-security`.
Modified Paths:
--------------
scope/src/debug.c
Modified: scope/src/debug.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -253,7 +253,7 @@ static void debug_parse(char *string, const char *error)
}
if (error)
- dc_error(error);
+ dc_error("%s", error);
else if (!end)
dc_error("\" expected");
else if (g_str_has_prefix(string, "~^(Scope)#07"))
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Plugins-Commits
mailing list