[geany/geany] 75542c: Add defensive checks on plugin_signal_connect()'s sensitive arguments

Colomban Wendling git-noreply at xxxxx
Sun Apr 13 17:59:37 UTC 2014


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sun, 13 Apr 2014 17:59:37 UTC
Commit:      75542c6d3c51663a0c23243a8c7cf2555fa12858
             https://github.com/geany/geany/commit/75542c6d3c51663a0c23243a8c7cf2555fa12858

Log Message:
-----------
Add defensive checks on plugin_signal_connect()'s sensitive arguments


Modified Paths:
--------------
    src/pluginutils.c

Modified: src/pluginutils.c
3 files changed, 3 insertions(+), 0 deletions(-)
===================================================================
@@ -128,6 +128,9 @@ void plugin_signal_connect(GeanyPlugin *plugin,
 	gulong id;
 	SignalConnection sc;
 
+	g_return_if_fail(plugin != NULL);
+	g_return_if_fail(object == NULL || G_IS_OBJECT(object));
+
 	if (!object)
 		object = geany_object;
 



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list